]> git.lizzy.rs Git - rust.git/blob - src/test/ui/wf/wf-object-safe.stderr
Use more appropriate spans on object unsafe traits and provide structured suggestions...
[rust.git] / src / test / ui / wf / wf-object-safe.stderr
1 error[E0038]: the trait `A` cannot be made into an object
2   --> $DIR/wf-object-safe.rs:9:13
3    |
4 LL | trait A {
5    |       - this trait cannot be made into an object...
6 LL |     fn foo(&self, _x: &Self);
7    |                       ----- ...because method `foo` references the `Self` type in this parameter
8 ...
9 LL |     let _x: &dyn A;
10    |             ^^^^^^ the trait `A` cannot be made into an object
11    |
12    = help: consider moving `foo` to another trait
13
14 error: aborting due to previous error
15
16 For more information about this error, try `rustc --explain E0038`.