]> git.lizzy.rs Git - rust.git/blob - tests/ui/lexical-scopes.rs
Auto merge of #107197 - aliemjay:patch-2, r=jackh726
[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() {}