]> git.lizzy.rs Git - rust.git/blob - src/test/ui/async-await/in-trait/fn-not-async-err2.stderr
Rollup merge of #103694 - WaffleLapkin:mask_doc_example, r=scottmcm
[rust.git] / src / test / ui / async-await / in-trait / fn-not-async-err2.stderr
1 error[E0562]: `impl Trait` only allowed in function and inherent method return types, not in `impl` method return
2   --> $DIR/fn-not-async-err2.rs:13:22
3    |
4 LL |     fn foo(&self) -> impl Future<Output = i32> {
5    |                      ^^^^^^^^^^^^^^^^^^^^^^^^^
6    |
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
9
10 error: aborting due to previous error
11
12 For more information about this error, try `rustc --explain E0562`.