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