]> git.lizzy.rs Git - rust.git/blob - src/test/ui/lexical-scopes.rs
Merge commit '2bb3996244cf1b89878da9e39841e9f6bf061602' into sync_cg_clif-2022-12-14
[rust.git] / src / test / 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() {}