diff options
| author | Alexis Bourget <alexis.bourget@gmail.com> | 2021-08-10 02:00:25 +0200 |
|---|---|---|
| committer | Alexis Bourget <alexis.bourget@gmail.com> | 2021-12-13 21:36:35 +0100 |
| commit | 7bc8577d99d521ea600ede94f2a8ed3bcd6eb4fb (patch) | |
| tree | 20ddaf12b4665a22b5a53d5b77e4ab80ee335476 /src/test/ui/parser/duplicate-visibility.rs | |
| parent | 5cf96e70f49badf4a3085e80658a85e19ca4edda (diff) | |
| download | rust-7bc8577d99d521ea600ede94f2a8ed3bcd6eb4fb.tar.gz rust-7bc8577d99d521ea600ede94f2a8ed3bcd6eb4fb.zip | |
Fix broken span and related tests
Diffstat (limited to 'src/test/ui/parser/duplicate-visibility.rs')
| -rw-r--r-- | src/test/ui/parser/duplicate-visibility.rs | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/test/ui/parser/duplicate-visibility.rs b/src/test/ui/parser/duplicate-visibility.rs index 87ba230eab5..3da4dd28b6d 100644 --- a/src/test/ui/parser/duplicate-visibility.rs +++ b/src/test/ui/parser/duplicate-visibility.rs @@ -1,6 +1,9 @@ fn main() {} -extern "C" { +extern "C" { //~ NOTE while parsing this item list starting here pub pub fn foo(); //~^ ERROR expected one of `(`, `async`, `const`, `default`, `extern`, `fn`, `pub`, `unsafe`, or `use`, found keyword `pub` -} + //~| NOTE expected one of 9 possible tokens + //~| HELP there is already a visibility, remove this one + //~| NOTE explicit visibility first seen here +} //~ NOTE the item list ends here |
