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

13 lines
486 B
Plaintext
Raw Normal View History

2024-04-20 11:39:43 -04:00
error: `impl Trait` must mention all const parameters in scope in `use<...>`
--> $DIR/forgot-to-capture-const.rs:1:34
2024-04-04 12:54:56 -04:00
|
2024-06-05 16:18:52 -04:00
LL | fn constant<const C: usize>() -> impl Sized + use<> {}
| -------------- ^^^^^^^^^^^^^^^^^^
| |
| const parameter is implicitly captured by this `impl Trait`
2024-04-04 12:54:56 -04: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 12:54:56 -04:00