12 lines
208 B
Rust
12 lines
208 B
Rust
|
#![feature(diagnostic_namespace)]
|
||
|
|
||
|
#[diagnostic::on_unimplemented(message = "Foo", label = "Bar", note = "Baz")]
|
||
|
trait Foo {}
|
||
|
|
||
|
fn takes_foo(_: impl Foo) {}
|
||
|
|
||
|
fn main() {
|
||
|
takes_foo(());
|
||
|
//~^ERROR Foo
|
||
|
}
|