mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-29 10:13:54 +00:00
9 lines
165 B
Rust
9 lines
165 B
Rust
#![feature(unsafe_attributes)]
|
|
|
|
#[unsafe(diagnostic::on_unimplemented( //~ ERROR: is not an unsafe attribute
|
|
message = "testing",
|
|
))]
|
|
trait Foo {}
|
|
|
|
fn main() {}
|