1 // Test scope annotations from `enclosing_scope` parameter
3 #![feature(rustc_attrs)]
5 #[rustc_on_unimplemented(enclosing_scope="in this scope")]
10 fn f<T: Trait>(x: T) {}
14 f(Foo{}); //~ ERROR the trait bound `Foo: Trait` is not satisfied
16 f(Foo{}); //~ ERROR the trait bound `Foo: Trait` is not satisfied
22 f(Foo{}); //~ ERROR the trait bound `Foo: Trait` is not satisfied
26 f(Foo{}); //~ ERROR the trait bound `Foo: Trait` is not satisfied