5b576665e5
Co-authored-by: est31 <est31@users.noreply.github.com> Co-authored-by: Esteban Kuber <estebank@users.noreply.github.com> Co-authored-by: Vadim Petrochenkov <vadim.petrochenkov@gmail.com>
14 lines
267 B
Rust
14 lines
267 B
Rust
#![feature(diagnostic_namespace)]
|
|
// check-pass
|
|
#[diagnostic::non_existing_attribute]
|
|
//~^WARN unknown diagnostic attribute
|
|
pub trait Bar {
|
|
}
|
|
|
|
#[diagnostic::non_existing_attribute(with_option = "foo")]
|
|
//~^WARN unknown diagnostic attribute
|
|
struct Foo;
|
|
|
|
fn main() {
|
|
}
|