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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

13 lines
486 B
Plaintext
Raw Permalink Normal View History

2024-04-20 15:39:43 +00:00
error: `impl Trait` must mention all const parameters in scope in `use<...>`
--> $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<> {}
| -------------- ^^^^^^^^^^^^^^^^^^
| |
| 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
error: aborting due to 1 previous error
2024-04-04 16:54:56 +00:00