diff options
Diffstat (limited to 'src/test/ui/fn/keyword-order.rs')
-rw-r--r-- | src/test/ui/fn/keyword-order.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/test/ui/fn/keyword-order.rs b/src/test/ui/fn/keyword-order.rs new file mode 100644 index 000000000..8a21db673 --- /dev/null +++ b/src/test/ui/fn/keyword-order.rs @@ -0,0 +1,6 @@ +// edition:2018 + +default pub const async unsafe extern fn err() {} //~ ERROR `default` is not followed by an item +//~^ ERROR expected item, found keyword `pub` + +pub default const async unsafe extern fn ok() {} |