mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-27 17:24:06 +00:00
12 lines
268 B
Rust
12 lines
268 B
Rust
//@ aux-build:foreign-trait-with-assoc.rs
|
|
|
|
extern crate foreign_trait_with_assoc;
|
|
use foreign_trait_with_assoc::Foo;
|
|
|
|
// Make sure we don't try to call `fn_arg_names` on a non-fn item.
|
|
|
|
impl Foo for Bar {}
|
|
//~^ ERROR cannot find type `Bar` in this scope
|
|
|
|
fn main() {}
|