]> git.lizzy.rs Git - rust.git/blob - src/test/ui/parser/mismatched-braces/missing-close-brace-in-trait.stderr
Rollup merge of #101642 - SkiFire13:fix-inplace-collection-leak, r=the8472
[rust.git] / src / test / ui / parser / mismatched-braces / missing-close-brace-in-trait.stderr
1 error: this file contains an unclosed delimiter
2   --> $DIR/missing-close-brace-in-trait.rs:12:65
3    |
4 LL | trait T {
5    |         - unclosed delimiter
6 ...
7 LL | fn main() {}
8    |                                                                 ^
9
10 error: struct is not supported in `trait`s or `impl`s
11   --> $DIR/missing-close-brace-in-trait.rs:4:1
12    |
13 LL | pub(crate) struct Bar<T>();
14    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^
15    |
16    = help: consider moving the struct out to a nearby module scope
17
18 error: implementation is not supported in `trait`s or `impl`s
19   --> $DIR/missing-close-brace-in-trait.rs:7:1
20    |
21 LL | impl T for Bar<usize> {
22    | ^^^^^^^^^^^^^^^^^^^^^
23    |
24    = help: consider moving the implementation out to a nearby module scope
25
26 error: aborting due to 3 previous errors
27