summaryrefslogtreecommitdiffstats
path: root/tests/ui/impl-trait/in-trait/doesnt-satisfy.rs
blob: bb4e0d44f3eff2bd4fc001d11036f82ca11a9960 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#![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() {}