]>
Commit | Line | Data |
---|---|---|
416331ca | 1 | error[E0658]: `impl Trait` in type aliases is unstable |
5099ac24 | 2 | --> $DIR/issue-60371.rs:8:17 |
48663c56 | 3 | | |
416331ca | 4 | LL | type Item = impl Bug; |
60c5eb7d | 5 | | ^^^^^^^^ |
48663c56 | 6 | | |
74b04a01 | 7 | = note: see issue #63063 <https://github.com/rust-lang/rust/issues/63063> for more information |
136023e0 | 8 | = help: add `#![feature(type_alias_impl_trait)]` to the crate attributes to enable |
48663c56 XL |
9 | |
10 | error[E0277]: the trait bound `(): Bug` is not satisfied | |
5099ac24 | 11 | --> $DIR/issue-60371.rs:10:40 |
48663c56 | 12 | | |
94222f64 | 13 | LL | const FUN: fn() -> Self::Item = || (); |
ee023bcb | 14 | | ^^ the trait `Bug` is not implemented for `()` |
48663c56 XL |
15 | | |
16 | = help: the following implementations were found: | |
17 | <&() as Bug> | |
48663c56 | 18 | |
ee023bcb | 19 | error: aborting due to 2 previous errors |
48663c56 XL |
20 | |
21 | Some errors have detailed explanations: E0277, E0658. | |
22 | For more information about an error, try `rustc --explain E0277`. |