rust/tests/ui/parser/mismatched-braces/missing-close-brace-in-trait.stderr

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

28 lines
783 B
Plaintext
Raw Normal View History

error: this file contains an unclosed delimiter
--> $DIR/missing-close-brace-in-trait.rs:12:65
|
LL | trait T {
| - unclosed delimiter
...
LL | fn main() {}
| ^
2020-02-23 05:54:00 -06:00
error: struct is not supported in `trait`s or `impl`s
--> $DIR/missing-close-brace-in-trait.rs:4:1
|
LL | pub(crate) struct Bar<T>();
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
2020-03-26 08:13:50 -05:00
|
= help: consider moving the struct out to a nearby module scope
2020-02-23 05:54:00 -06:00
error: implementation is not supported in `trait`s or `impl`s
--> $DIR/missing-close-brace-in-trait.rs:7:1
|
LL | impl T for Bar<usize> {
| ^^^^^^^^^^^^^^^^^^^^^
2020-03-26 08:13:50 -05:00
|
= help: consider moving the implementation out to a nearby module scope
error: aborting due to 3 previous errors