rust/tests/ui/impl-trait/precise-capturing/duplicated-use.real.stderr
2024-06-17 22:35:25 -04:00

18 lines
670 B
Plaintext

error: duplicate `use<...>` precise capturing syntax
--> $DIR/duplicated-use.rs:8:32
|
LL | fn hello<'a>() -> impl Sized + use<'a> + use<'a> {}
| ^^^^^^^ ------- second `use<...>` here
warning: the feature `precise_capturing` is incomplete and may not be safe to use and/or cause compiler crashes
--> $DIR/duplicated-use.rs:4:12
|
LL | #![feature(precise_capturing)]
| ^^^^^^^^^^^^^^^^^
|
= note: see issue #123432 <https://github.com/rust-lang/rust/issues/123432> for more information
= note: `#[warn(incomplete_features)]` on by default
error: aborting due to 1 previous error; 1 warning emitted