1 error[E0562]: `impl Trait` only allowed in function and inherent method return types, not in trait method return
2 --> $DIR/feature-gate-return_position_impl_trait_in_trait.rs:8:17
4 LL | fn bar() -> impl Sized;
7 = note: see issue #91611 <https://github.com/rust-lang/rust/issues/91611> for more information
8 = help: add `#![feature(return_position_impl_trait_in_trait)]` to the crate attributes to enable
10 error[E0562]: `impl Trait` only allowed in function and inherent method return types, not in trait method return
11 --> $DIR/feature-gate-return_position_impl_trait_in_trait.rs:9:21
13 LL | fn baz() -> Box<impl std::fmt::Display>;
14 | ^^^^^^^^^^^^^^^^^^^^^^
16 = note: see issue #91611 <https://github.com/rust-lang/rust/issues/91611> for more information
17 = help: add `#![feature(return_position_impl_trait_in_trait)]` to the crate attributes to enable
19 error[E0562]: `impl Trait` only allowed in function and inherent method return types, not in trait method return
20 --> $DIR/feature-gate-return_position_impl_trait_in_trait.rs:15:23
22 LL | async fn bar() -> impl Sized;
25 = note: see issue #91611 <https://github.com/rust-lang/rust/issues/91611> for more information
26 = help: add `#![feature(return_position_impl_trait_in_trait)]` to the crate attributes to enable
28 error: aborting due to 3 previous errors
30 For more information about this error, try `rustc --explain E0562`.