]> git.lizzy.rs Git - rust.git/blob - src/test/ui/existential_types/issue-60371.stderr
Auto merge of #63124 - Centril:rollup-onohtqt, r=Centril
[rust.git] / src / test / ui / existential_types / issue-60371.stderr
1 error[E0658]: existential types are unstable
2   --> $DIR/issue-60371.rs:8:5
3    |
4 LL |     existential type Item: Bug;
5    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^
6    |
7    = note: for more information, see https://github.com/rust-lang/rust/issues/63063
8    = help: add `#![feature(existential_type)]` to the crate attributes to enable
9
10 error[E0277]: the trait bound `(): Bug` is not satisfied
11   --> $DIR/issue-60371.rs:8:5
12    |
13 LL |     existential type Item: Bug;
14    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `Bug` is not implemented for `()`
15    |
16    = help: the following implementations were found:
17              <&() as Bug>
18    = note: the return type of a function must have a statically known size
19
20 error: could not find defining uses
21   --> $DIR/issue-60371.rs:8:5
22    |
23 LL |     existential type Item: Bug;
24    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^
25
26 error: aborting due to 3 previous errors
27
28 Some errors have detailed explanations: E0277, E0658.
29 For more information about an error, try `rustc --explain E0277`.