diff options
| author | Mara Bos <m-ou.se@m-ou.se> | 2021-06-14 13:03:55 +0000 |
|---|---|---|
| committer | lrh2000 <lrh2000@pku.edu.cn> | 2021-06-26 23:09:43 +0800 |
| commit | 40fb2e97053e2655016688264ff19160741c1dbb (patch) | |
| tree | 7cc36ec93a63e8f8e309543e9ec15050e59df2d5 | |
| parent | ce43fc9404f7a205d882ea9146c3f568229b96b9 (diff) | |
| download | rust-40fb2e97053e2655016688264ff19160741c1dbb.tar.gz rust-40fb2e97053e2655016688264ff19160741c1dbb.zip | |
Update reserved-prefixes test output.
| -rw-r--r-- | src/test/ui/rust-2021/reserved-prefixes.stderr | 90 |
1 files changed, 54 insertions, 36 deletions
diff --git a/src/test/ui/rust-2021/reserved-prefixes.stderr b/src/test/ui/rust-2021/reserved-prefixes.stderr index ffaad315202..32e18563329 100644 --- a/src/test/ui/rust-2021/reserved-prefixes.stderr +++ b/src/test/ui/rust-2021/reserved-prefixes.stderr @@ -2,91 +2,109 @@ error: prefix `foo` is unknown --> $DIR/reserved-prefixes.rs:16:12 | LL | demo3!(foo#bar); - | ^^^- help: consider inserting a whitespace before this `#` - | | - | unknown prefix + | ^^^ unknown prefix | - = note: prefixed identifiers and string literals are reserved since Rust 2021 + = note: prefixed identifiers and literals are reserved since Rust 2021 +help: consider inserting whitespace here + | +LL | demo3!(foo #bar); + | -- error: prefix `foo` is unknown --> $DIR/reserved-prefixes.rs:17:12 | LL | demo2!(foo"bar"); - | ^^^- help: consider inserting a whitespace before this `"` - | | - | unknown prefix + | ^^^ unknown prefix + | + = note: prefixed identifiers and literals are reserved since Rust 2021 +help: consider inserting whitespace here | - = note: prefixed identifiers and string literals are reserved since Rust 2021 +LL | demo2!(foo "bar"); + | -- error: prefix `foo` is unknown --> $DIR/reserved-prefixes.rs:18:12 | LL | demo2!(foo'b'); - | ^^^- help: consider inserting a whitespace before this `'` - | | - | unknown prefix + | ^^^ unknown prefix + | + = note: prefixed identifiers and literals are reserved since Rust 2021 +help: consider inserting whitespace here | - = note: prefixed identifiers and string literals are reserved since Rust 2021 +LL | demo2!(foo 'b'); + | -- error: prefix `foo` is unknown --> $DIR/reserved-prefixes.rs:20:12 | LL | demo2!(foo'b); - | ^^^- help: consider inserting a whitespace before this `'` - | | - | unknown prefix + | ^^^ unknown prefix | - = note: prefixed identifiers and string literals are reserved since Rust 2021 + = note: prefixed identifiers and literals are reserved since Rust 2021 +help: consider inserting whitespace here + | +LL | demo2!(foo 'b); + | -- error: prefix `foo` is unknown --> $DIR/reserved-prefixes.rs:21:12 | LL | demo3!(foo# bar); - | ^^^- help: consider inserting a whitespace before this `#` - | | - | unknown prefix + | ^^^ unknown prefix + | + = note: prefixed identifiers and literals are reserved since Rust 2021 +help: consider inserting whitespace here | - = note: prefixed identifiers and string literals are reserved since Rust 2021 +LL | demo3!(foo # bar); + | -- error: prefix `foo` is unknown --> $DIR/reserved-prefixes.rs:22:12 | LL | demo4!(foo#! bar); - | ^^^- help: consider inserting a whitespace before this `#` - | | - | unknown prefix + | ^^^ unknown prefix | - = note: prefixed identifiers and string literals are reserved since Rust 2021 + = note: prefixed identifiers and literals are reserved since Rust 2021 +help: consider inserting whitespace here + | +LL | demo4!(foo #! bar); + | -- error: prefix `foo` is unknown --> $DIR/reserved-prefixes.rs:23:12 | LL | demo4!(foo## bar); - | ^^^- help: consider inserting a whitespace before this `#` - | | - | unknown prefix + | ^^^ unknown prefix + | + = note: prefixed identifiers and literals are reserved since Rust 2021 +help: consider inserting whitespace here | - = note: prefixed identifiers and string literals are reserved since Rust 2021 +LL | demo4!(foo ## bar); + | -- error: prefix `foo` is unknown --> $DIR/reserved-prefixes.rs:25:12 | LL | demo4!(foo#bar#); - | ^^^- help: consider inserting a whitespace before this `#` - | | - | unknown prefix + | ^^^ unknown prefix | - = note: prefixed identifiers and string literals are reserved since Rust 2021 + = note: prefixed identifiers and literals are reserved since Rust 2021 +help: consider inserting whitespace here + | +LL | demo4!(foo #bar#); + | -- error: prefix `bar` is unknown --> $DIR/reserved-prefixes.rs:25:16 | LL | demo4!(foo#bar#); - | ^^^- help: consider inserting a whitespace before this `#` - | | - | unknown prefix + | ^^^ unknown prefix + | + = note: prefixed identifiers and literals are reserved since Rust 2021 +help: consider inserting whitespace here | - = note: prefixed identifiers and string literals are reserved since Rust 2021 +LL | demo4!(foo#bar #); + | -- error: aborting due to 9 previous errors |
