2024-04-20 10:39:43 -05:00
|
|
|
error: `impl Trait` must mention all const parameters in scope in `use<...>`
|
2024-07-12 05:12:24 -05:00
|
|
|
--> $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<> {}
|
|
|
|
| -------------- ^^^^^^^^^^^^^^^^^^
|
2024-04-19 14:18:00 -05:00
|
|
|
| |
|
|
|
|
| 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
|
|
|
|
|
2024-06-16 21:07:23 -05:00
|
|
|
error: aborting due to 1 previous error
|
2024-04-04 11:54:56 -05:00
|
|
|
|