]> git.lizzy.rs Git - rust.git/blob - tests/ui/lexical-scopes.rs
Merge commit '598f0909568a51de8a2d1148f55a644fd8dffad0' into sync_cg_clif-2023-01-24
[rust.git] / tests / ui / lexical-scopes.rs
1 struct T { i: i32 }
2 fn f<T>() {
3     let t = T { i: 0 }; //~ ERROR expected struct, variant or union type, found type parameter `T`
4 }
5
6 mod Foo {
7     pub fn f() {}
8 }
9 fn g<Foo>() {
10     Foo::f(); //~ ERROR no function or associated item named `f`
11 }
12
13 fn main() {}