diff options
Diffstat (limited to 'src/test/ui/parser/underscore-suffix-for-string.rs')
-rw-r--r-- | src/test/ui/parser/underscore-suffix-for-string.rs | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/src/test/ui/parser/underscore-suffix-for-string.rs b/src/test/ui/parser/underscore-suffix-for-string.rs deleted file mode 100644 index bd260752e..000000000 --- a/src/test/ui/parser/underscore-suffix-for-string.rs +++ /dev/null @@ -1,17 +0,0 @@ -macro_rules! sink { - ($tt:tt) => {()} -} - -fn main() { - let _ = "Foo"_; - //~^ ERROR underscore literal suffix is not allowed - - // This is ok, because `__` is a valid identifier and the macro consumes it - // before proper parsing happens. - let _ = sink!("Foo"__); - - // This is not ok, even as an input to a macro, because the `_` suffix is - // never allowed. - sink!("Foo"_); - //~^ ERROR underscore literal suffix is not allowed -} |