about summary refs log tree commit diff
path: root/tests/ui/resolve/dont-compute-arg-names-for-non-fn.rs
blob: 4053ccdfbf1412ec35d7e09af4425648a21a4117 (plain)
1
2
3
4
5
6
7
8
9
10
11
//@ 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_idents` on a non-fn item.

impl Foo for Bar {}
//~^ ERROR cannot find type `Bar` in this scope

fn main() {}