]> git.proxmox.com Git - rustc.git/blame - src/test/ui/type-alias-impl-trait/issue-60371.stderr
New upstream version 1.56.0~beta.4+dfsg1
[rustc.git] / src / test / ui / type-alias-impl-trait / issue-60371.stderr
CommitLineData
416331ca 1error[E0658]: `impl Trait` in type aliases is unstable
29967ef6 2 --> $DIR/issue-60371.rs:10: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
94222f64 11 --> $DIR/issue-60371.rs:12:40
48663c56 12 |
94222f64
XL
13LL | const FUN: fn() -> Self::Item = || ();
14 | ^ the trait `Bug` is not implemented for `()`
48663c56
XL
15 |
16 = help: the following implementations were found:
17 <&() as Bug>
48663c56 18
94222f64 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`.