summaryrefslogtreecommitdiffstats
path: root/tests/ui/parser/mismatched-braces/missing-close-brace-in-impl-trait.stderr
blob: cc7cc0c55d5ff1fe08d379bd3b593d306022e827 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
error: this file contains an unclosed delimiter
  --> $DIR/missing-close-brace-in-impl-trait.rs:13:52
   |
LL | impl T for () {
   |               - unclosed delimiter
...
LL |
   |                                                    ^

error: trait is not supported in `trait`s or `impl`s
  --> $DIR/missing-close-brace-in-impl-trait.rs:7:1
   |
LL | trait T {
   | ^^^^^^^
   |
   = help: consider moving the trait out to a nearby module scope

error: struct is not supported in `trait`s or `impl`s
  --> $DIR/missing-close-brace-in-impl-trait.rs:11:1
   |
LL | pub(crate) struct Bar<T>();
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^
   |
   = help: consider moving the struct out to a nearby module scope

error[E0405]: cannot find trait `T` in this scope
  --> $DIR/missing-close-brace-in-impl-trait.rs:3:6
   |
LL | impl T for () {
   |      ^ not found in this scope

error: aborting due to 4 previous errors

For more information about this error, try `rustc --explain E0405`.