blob: 80db056e7dd3aa5ca2e7cc352366b080408827a2 [file] [log] [blame]
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
}