]> git.proxmox.com Git - rustc.git/blame - src/test/ui/type-alias-impl-trait/issue-60371.stderr
New upstream version 1.61.0+dfsg1
[rustc.git] / src / test / ui / type-alias-impl-trait / issue-60371.stderr
CommitLineData
416331ca 1error[E0658]: `impl Trait` in type aliases is unstable
5099ac24 2 --> $DIR/issue-60371.rs:8:17
48663c56 3 |
416331ca 4LL | 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
10error[E0277]: the trait bound `(): Bug` is not satisfied
5099ac24 11 --> $DIR/issue-60371.rs:10:40
48663c56 12 |
94222f64 13LL | 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 19error: aborting due to 2 previous errors
48663c56
XL
20
21Some errors have detailed explanations: E0277, E0658.
22For more information about an error, try `rustc --explain E0277`.