summaryrefslogtreecommitdiffstats
path: root/tests/ui/on-unimplemented/feature-gate-on-unimplemented.rs
blob: 3cc50e3499a09c3f8f36dbfadb887343fe7b6e87 (plain)
1
2
3
4
5
6
7
8
// Test that `#[rustc_on_unimplemented]` is gated by `rustc_attrs` feature gate.

#[rustc_on_unimplemented = "test error `{Self}` with `{Bar}`"]
//~^ ERROR this is an internal attribute that will never be stable
trait Foo<Bar>
{}

fn main() {}