2019-10-25 07:19:07 +02:00
|
|
|
// Test that `#[rustc_on_unimplemented]` is gated by `rustc_attrs` feature gate.
|
|
|
|
|
|
|
|
|
|
#[rustc_on_unimplemented = "test error `{Self}` with `{Bar}`"]
|
2025-05-18 18:35:13 +02:00
|
|
|
//~^ ERROR use of an internal attribute [E0658]
|
|
|
|
|
//~| NOTE the `#[rustc_on_unimplemented]` attribute is an internal implementation detail that will never be stable
|
|
|
|
|
//~| NOTE see `#[diagnostic::on_unimplemented]` for the stable equivalent of this attribute
|
|
|
|
|
trait Foo<Bar> {}
|
2019-10-25 07:19:07 +02:00
|
|
|
|
|
|
|
|
fn main() {}
|