]>
git.proxmox.com Git - rustc.git/blob - src/test/ui/on-unimplemented/parent-label.rs
1 // Test scope annotations from `parent_label` parameter
3 #![feature(rustc_attrs)]
5 #[rustc_on_unimplemented(parent_label = "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