|
1 |
| -error: an implementation of `From` is preferred since it gives you `Into<_>` for free where the reverse isn't true |
2 |
| - --> $DIR/from_over_into_unfixable.rs:11:1 |
| 1 | +error[E0658]: `impl Trait` in type aliases is unstable |
| 2 | + --> $DIR/from_over_into_unfixable.rs:35:15 |
3 | 3 | |
|
4 |
| -LL | impl Into<InMacro> for String { |
5 |
| - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 4 | +LL | type Opaque = impl Sized; |
| 5 | + | ^^^^^^^^^^ |
6 | 6 | |
|
7 |
| - = help: replace the `Into` implementation with `From<std::string::String>` |
8 |
| - = note: `-D clippy::from-over-into` implied by `-D warnings` |
| 7 | + = note: see issue #63063 <https://github.com/rust-lang/rust/issues/63063> for more information |
| 8 | + = help: add `#![feature(type_alias_impl_trait)]` to the crate attributes to enable |
9 | 9 |
|
10 |
| -error: an implementation of `From` is preferred since it gives you `Into<_>` for free where the reverse isn't true |
11 |
| - --> $DIR/from_over_into_unfixable.rs:19:1 |
12 |
| - | |
13 |
| -LL | impl Into<WeirdUpperSelf> for &'static [u8] { |
14 |
| - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
15 |
| - | |
16 |
| - = help: replace the `Into` implementation with `From<&'static [u8]>` |
17 |
| - |
18 |
| -error: an implementation of `From` is preferred since it gives you `Into<_>` for free where the reverse isn't true |
19 |
| - --> $DIR/from_over_into_unfixable.rs:28:1 |
20 |
| - | |
21 |
| -LL | impl Into<u8> for ContainsVal { |
22 |
| - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
23 |
| - | |
24 |
| - = help: `impl From<Local> for Foreign` is allowed by the orphan rules, for more information see |
25 |
| - https://doc.rust-lang.org/reference/items/implementations.html#trait-implementation-coherence |
26 |
| - = help: replace the `Into` implementation with `From<ContainsVal>` |
27 |
| - |
28 |
| -error: aborting due to 3 previous errors |
| 10 | +error: aborting due to previous error |
29 | 11 |
|
| 12 | +For more information about this error, try `rustc --explain E0658`. |
0 commit comments