Sign in
android
/
toolchain
/
rustc
/
87880447cc5437c45a3562596a9766d9797e7318
/
.
/
tests
/
ui
/
impl-trait
/
in-trait
/
doesnt-satisfy.rs
blob: bb4e0d44f3eff2bd4fc001d11036f82ca11a9960 [
file
] [
log
] [
blame
]
#![
feature
(
return_position_impl_trait_in_trait
)]
#![
allow
(
incomplete_features
)]
trait
Foo
{
fn
bar
()
->
impl
std
::
fmt
::
Display
;
}
impl
Foo
for
()
{
fn
bar
()
->
()
{}
//~^ ERROR `()` doesn't implement `std::fmt::Display`
}
fn
main
()
{}