Sign in
android
/
toolchain
/
rustc
/
refs/heads/main
/
.
/
tests
/
ui
/
diagnostic_namespace
/
on_unimplemented
/
on_unimplemented_simple.rs
blob: 7ca0312775964bb9e684fbdc39c72c40dcd9b87c [
file
] [
log
] [
blame
]
#[
diagnostic
::
on_unimplemented
(
message
=
"Foo"
,
label
=
"Bar"
,
note
=
"Baz"
)]
trait
Foo
{}
fn
takes_foo
(
_
:
impl
Foo
)
{}
fn
main
()
{
takes_foo
(());
//~^ERROR Foo
}