diff options
Diffstat (limited to 'tests/ui/rfc-2565-param-attrs/param-attrs-2018.rs')
-rw-r--r-- | tests/ui/rfc-2565-param-attrs/param-attrs-2018.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/ui/rfc-2565-param-attrs/param-attrs-2018.rs b/tests/ui/rfc-2565-param-attrs/param-attrs-2018.rs new file mode 100644 index 000000000..a6f693bd5 --- /dev/null +++ b/tests/ui/rfc-2565-param-attrs/param-attrs-2018.rs @@ -0,0 +1,6 @@ +// edition:2018 + +trait Trait2015 { fn foo(#[allow(C)] i32); } +//~^ ERROR expected one of `:`, `@`, or `|`, found `)` + +fn main() {} |