]> git.proxmox.com Git - rustc.git/blame - src/test/ui/typeck/issue-90319.rs
Update unsuspicious file list
[rustc.git] / src / test / ui / typeck / issue-90319.rs
CommitLineData
ee023bcb
FG
1struct Wrapper<T>(T);
2
3trait Trait {
4 fn method(&self) {}
5}
6
7impl<'a, T> Trait for Wrapper<&'a T> where Wrapper<T>: Trait {}
8
9fn get<T>() -> T {
10 unimplemented!()
11}
12
13fn main() {
14 let thing = get::<Thing>();//~ERROR cannot find type `Thing` in this scope [E0412]
15 let wrapper = Wrapper(thing);
16 Trait::method(&wrapper);
17}