diff options
Diffstat (limited to 'tests/ui/resolve/issue-21221-4.rs')
| -rw-r--r-- | tests/ui/resolve/issue-21221-4.rs | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/ui/resolve/issue-21221-4.rs b/tests/ui/resolve/issue-21221-4.rs new file mode 100644 index 00000000000..88d5bd06ca5 --- /dev/null +++ b/tests/ui/resolve/issue-21221-4.rs @@ -0,0 +1,15 @@ +// testing whether the lookup mechanism picks up types +// defined in the outside crate + +// aux-build:issue-21221-4.rs + +extern crate issue_21221_4; + +struct Foo; + +impl T for Foo {} +//~^ ERROR cannot find trait `T` + +fn main() { + println!("Hello, world!"); +} |
