]> git.lizzy.rs Git - rust.git/blob - src/test/ui/on-unimplemented/feature-gate-on-unimplemented.rs
Rollup merge of #76275 - FedericoPonzi:immutable-write-impl-73836, r=dtolnay
[rust.git] / src / test / ui / on-unimplemented / feature-gate-on-unimplemented.rs
1 // Test that `#[rustc_on_unimplemented]` is gated by `rustc_attrs` feature gate.
2
3 #[rustc_on_unimplemented = "test error `{Self}` with `{Bar}`"]
4 //~^ ERROR this is an internal attribute that will never be stable
5 trait Foo<Bar>
6 {}
7
8 fn main() {}