Files
rust/tests/ui/traits/wf-object/only-maybe-bound.stderr

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

20 lines
658 B
Plaintext
Raw Normal View History

error[E0658]: `?Trait` is not permitted in trait object types
2021-02-08 23:15:45 +01:00
--> $DIR/only-maybe-bound.rs:3:15
|
LL | type _0 = dyn ?Sized;
| ^^^^^^
|
= help: add `#![feature(more_maybe_bounds)]` to the crate attributes to enable
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
error[E0224]: at least one trait is required for an object type
2021-02-08 23:15:45 +01:00
--> $DIR/only-maybe-bound.rs:3:11
2019-03-30 22:06:09 +00:00
|
LL | type _0 = dyn ?Sized;
| ^^^^^^^^^^
error: aborting due to 2 previous errors
2019-03-30 22:06:09 +00:00
Some errors have detailed explanations: E0224, E0658.
For more information about an error, try `rustc --explain E0224`.