]> git.lizzy.rs Git - rust.git/blob - tests/ui/resolve/issue-21221-4.rs
Rollup merge of #106144 - tgross35:patch-1, r=Mark-Simulacrum
[rust.git] / tests / ui / resolve / issue-21221-4.rs
1 // testing whether the lookup mechanism picks up types
2 // defined in the outside crate
3
4 // aux-build:issue-21221-4.rs
5
6 extern crate issue_21221_4;
7
8 struct Foo;
9
10 impl T for Foo {}
11 //~^ ERROR cannot find trait `T`
12
13 fn main() {
14     println!("Hello, world!");
15 }