about summary refs log tree commit diff
path: root/tests/ui/impl-trait/diagnostics/highlight-difference-between-expected-trait-and-found-trait.rs
blob: ffb7a1008e0f031a690d366640015d126ce8ac04 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
//@ only-linux
//@ compile-flags: --error-format=human --color=always

trait Foo<T>: Bar<T> {}

trait Bar<T> {}

struct Struct;

impl<T, K> Foo<K> for T where T: Bar<K>
{}

impl<'a> Bar<()> for Struct {}

fn foo() -> impl Foo<i32> {
    Struct
}

fn main() {}

//~? RAW the trait bound