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