2016-03-08 17:33:48 -06:00
|
|
|
struct T { i: i32 }
|
|
|
|
fn f<T>() {
|
2016-09-14 16:51:46 -05:00
|
|
|
let t = T { i: 0 }; //~ ERROR expected struct, variant or union type, found type parameter `T`
|
2016-03-08 17:33:48 -06:00
|
|
|
}
|
|
|
|
|
|
|
|
mod Foo {
|
|
|
|
pub fn f() {}
|
|
|
|
}
|
|
|
|
fn g<Foo>() {
|
2017-06-02 15:20:36 -05:00
|
|
|
Foo::f(); //~ ERROR no function or associated item named `f`
|
2016-03-08 17:33:48 -06:00
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {}
|