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