2024-11-18 10:45:26 -08:00
|
|
|
//@ reference: attributes.diagnostic.on_unimplemented.intro
|
|
|
|
|
//@ reference: attributes.diagnostic.on_unimplemented.keys
|
2023-06-02 13:55:46 +02:00
|
|
|
#[diagnostic::on_unimplemented(message = "Foo", label = "Bar", note = "Baz")]
|
|
|
|
|
trait Foo {}
|
|
|
|
|
|
|
|
|
|
fn takes_foo(_: impl Foo) {}
|
|
|
|
|
|
|
|
|
|
fn main() {
|
|
|
|
|
takes_foo(());
|
|
|
|
|
//~^ERROR Foo
|
|
|
|
|
}
|