rust/tests/ui/resolve/issue-21221-4.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

16 lines
259 B
Rust
Raw Normal View History

// 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 {}
2017-11-20 13:13:27 +01:00
//~^ ERROR cannot find trait `T`
fn main() {
println!("Hello, world!");
}