blob: fcd0b51eea4fc29361b4eda7621a07fe7caaa24f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
// [next] compile-flags: -Zlower-impl-trait-in-trait-to-assoc-ty
// revisions: current next
#![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() {}
|