]> git.lizzy.rs Git - rust.git/blob - src/test/ui/type-alias-impl-trait/issue-60371.stderr
Auto merge of #95454 - randomicon00:fix95444, r=wesleywiser
[rust.git] / src / test / ui / type-alias-impl-trait / issue-60371.stderr
1 error[E0658]: `impl Trait` in type aliases is unstable
2   --> $DIR/issue-60371.rs:8:17
3    |
4 LL |     type Item = impl Bug;
5    |                 ^^^^^^^^
6    |
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
10 error[E0277]: the trait bound `(): Bug` is not satisfied
11   --> $DIR/issue-60371.rs:10:40
12    |
13 LL |     const FUN: fn() -> Self::Item = || ();
14    |                                        ^^ the trait `Bug` is not implemented for `()`
15    |
16    = help: the trait `Bug` is implemented for `&()`
17
18 error: aborting due to 2 previous errors
19
20 Some errors have detailed explanations: E0277, E0658.
21 For more information about an error, try `rustc --explain E0277`.