mirror of
https://github.com/rust-lang/rust.git
synced 2025-10-03 02:40:40 +00:00
39 lines
1.2 KiB
Rust
39 lines
1.2 KiB
Rust
#![feature(rustc_attrs)]
|
|
|
|
#[rustc_skip_during_method_dispatch]
|
|
//~^ ERROR: malformed `rustc_skip_during_method_dispatch` attribute input [E0539]
|
|
trait NotAList {}
|
|
|
|
#[rustc_skip_during_method_dispatch = "array"]
|
|
//~^ ERROR: malformed `rustc_skip_during_method_dispatch` attribute input [E0539]
|
|
trait AlsoNotAList {}
|
|
|
|
#[rustc_skip_during_method_dispatch()]
|
|
//~^ ERROR: malformed `rustc_skip_during_method_dispatch` attribute input
|
|
trait Argless {}
|
|
|
|
#[rustc_skip_during_method_dispatch(array, boxed_slice, array)]
|
|
//~^ ERROR: malformed `rustc_skip_during_method_dispatch` attribute input
|
|
trait Duplicate {}
|
|
|
|
#[rustc_skip_during_method_dispatch(slice)]
|
|
//~^ ERROR: malformed `rustc_skip_during_method_dispatch` attribute input
|
|
trait Unexpected {}
|
|
|
|
#[rustc_skip_during_method_dispatch(array = true)]
|
|
//~^ ERROR: malformed `rustc_skip_during_method_dispatch` attribute input
|
|
trait KeyValue {}
|
|
|
|
#[rustc_skip_during_method_dispatch("array")]
|
|
//~^ ERROR: malformed `rustc_skip_during_method_dispatch` attribute input
|
|
trait String {}
|
|
|
|
#[rustc_skip_during_method_dispatch(array, boxed_slice)]
|
|
trait OK {}
|
|
|
|
#[rustc_skip_during_method_dispatch(array)]
|
|
//~^ ERROR: attribute should be applied to a trait
|
|
impl OK for () {}
|
|
|
|
fn main() {}
|