]> git.lizzy.rs Git - rust.git/blob - src/test/ui/parser/mismatched-braces/missing-close-brace-in-impl-trait.stderr
Rollup merge of #101889 - tspiteri:redoc-uint-adc-sbb, r=m-ou-se
[rust.git] / src / test / ui / parser / mismatched-braces / missing-close-brace-in-impl-trait.stderr
1 error: this file contains an unclosed delimiter
2   --> $DIR/missing-close-brace-in-impl-trait.rs:13:52
3    |
4 LL | impl T for () {
5    |               - unclosed delimiter
6 ...
7 LL |
8    |                                                    ^
9
10 error: trait is not supported in `trait`s or `impl`s
11   --> $DIR/missing-close-brace-in-impl-trait.rs:7:1
12    |
13 LL | trait T {
14    | ^^^^^^^
15    |
16    = help: consider moving the trait out to a nearby module scope
17
18 error: struct is not supported in `trait`s or `impl`s
19   --> $DIR/missing-close-brace-in-impl-trait.rs:11:1
20    |
21 LL | pub(crate) struct Bar<T>();
22    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^
23    |
24    = help: consider moving the struct out to a nearby module scope
25
26 error[E0405]: cannot find trait `T` in this scope
27   --> $DIR/missing-close-brace-in-impl-trait.rs:3:6
28    |
29 LL | impl T for () {
30    |      ^ not found in this scope
31
32 error: aborting due to 4 previous errors
33
34 For more information about this error, try `rustc --explain E0405`.