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