summary refs log tree commit diff
path: root/src/test/ui/issues/issue-18819.rs
blob: 80db056e7dd3aa5ca2e7cc352366b080408827a2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
trait Foo {
    type Item;
}

struct X;

impl Foo for X {
    type Item = bool;
}

fn print_x(_: &Foo<Item=bool>, extra: &str) {
    println!("{}", extra);
}

fn main() {
    print_x(X);
    //~^ ERROR E0061
}