rust/tests/ui/impl-trait/precise-capturing/forgot-to-capture-const.stderr

13 lines
486 B
Plaintext
Raw Normal View History

2024-04-20 10:39:43 -05:00
error: `impl Trait` must mention all const parameters in scope in `use<...>`
--> $DIR/forgot-to-capture-const.rs:1:34
2024-04-04 11:54:56 -05:00
|
2024-06-05 15:18:52 -05:00
LL | fn constant<const C: usize>() -> impl Sized + use<> {}
| -------------- ^^^^^^^^^^^^^^^^^^
| |
| const parameter is implicitly captured by this `impl Trait`
2024-04-04 11:54:56 -05:00
|
= note: currently, all const parameters are required to be mentioned in the precise captures list
error: aborting due to 1 previous error
2024-04-04 11:54:56 -05:00