]> git.proxmox.com Git - rustc.git/blob - tests/ui/impl-trait/in-trait/dont-project-to-rpitit-with-no-value.current.stderr
New upstream version 1.70.0+dfsg1
[rustc.git] / tests / ui / impl-trait / in-trait / dont-project-to-rpitit-with-no-value.current.stderr
1 warning: the feature `return_position_impl_trait_in_trait` is incomplete and may not be safe to use and/or cause compiler crashes
2 --> $DIR/dont-project-to-rpitit-with-no-value.rs:4:12
3 |
4 LL | #![feature(return_position_impl_trait_in_trait)]
5 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
6 |
7 = note: see issue #91611 <https://github.com/rust-lang/rust/issues/91611> for more information
8 = note: `#[warn(incomplete_features)]` on by default
9
10 error[E0046]: not all trait items implemented, missing: `foo`
11 --> $DIR/dont-project-to-rpitit-with-no-value.rs:12:1
12 |
13 LL | fn foo(&self) -> impl Sized;
14 | ---------------------------- `foo` from trait
15 ...
16 LL | impl MyTrait for i32 {
17 | ^^^^^^^^^^^^^^^^^^^^ missing `foo` in implementation
18
19 error: aborting due to previous error; 1 warning emitted
20
21 For more information about this error, try `rustc --explain E0046`.