rust/tests/ui/resolve/dont-compute-arg-names-for-non-fn.rs
2024-09-07 07:38:22 -04:00

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() {}