fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #71868 - Mark-Simulacrum:stable-1.43.1, r=pietroalbini8d69840ab92

1.43.1
1.3 KiB54 linesraw
1error: `default` is not followed by an item
2  --> $DIR/default-unmatched-assoc.rs:5:5
3   |
4LL |     default do
5   |     ^^^^^^^ the `default` qualifier
6   |
7   = note: only `fn`, `const`, `type`, or `impl` items may be prefixed by `default`
8
9error: non-item in item list
10  --> $DIR/default-unmatched-assoc.rs:5:13
11   |
12LL | trait Foo {
13   |           - item list starts here
14LL |     default!();
15LL |     default do
16   |             ^^ non-item starts here
17...
18LL | }
19   | - item list ends here
20
21error: `default` is not followed by an item
22  --> $DIR/default-unmatched-assoc.rs:13:5
23   |
24LL |     default do
25   |     ^^^^^^^ the `default` qualifier
26   |
27   = note: only `fn`, `const`, `type`, or `impl` items may be prefixed by `default`
28
29error: non-item in item list
30  --> $DIR/default-unmatched-assoc.rs:13:13
31   |
32LL | impl S {
33   |        - item list starts here
34LL |     default!();
35LL |     default do
36   |             ^^ non-item starts here
37...
38LL | }
39   | - item list ends here
40
41error: cannot find macro `default` in this scope
42  --> $DIR/default-unmatched-assoc.rs:12:5
43   |
44LL |     default!();
45   |     ^^^^^^^
46
47error: cannot find macro `default` in this scope
48  --> $DIR/default-unmatched-assoc.rs:4:5
49   |
50LL |     default!();
51   |     ^^^^^^^
52
53error: aborting due to 6 previous errors
54