blob: 74a9af84cae850bf1794bf5932b0e0964c8aaa46 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
pub trait Foo<A=Self> {
fn foo(&self);
}
pub trait Bar<X=usize, A=Self> {
fn foo(&self);
}
fn main() {
let a = Foo::lol();
//~^ ERROR no function or associated item named
let b = Foo::<_>::lol();
//~^ ERROR no function or associated item named
let c = Bar::lol();
//~^ ERROR no function or associated item named
let d = Bar::<usize, _>::lol();
//~^ ERROR no function or associated item named
let e = Bar::<usize>::lol();
//~^ ERROR must be explicitly specified
}
|