fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
473 B13 linesraw
1error[E0401]: can't use generic parameters from outer item
2  --> $DIR/const-param-from-outer-fn.rs:3:9
3   |
4LL | fn foo<const X: u32>() {
5   |              - const parameter from outer item
6LL |     fn bar() -> u32 {
7   |           - help: try introducing a local generic parameter here: `<X>`
8LL |         X
9   |         ^ use of generic parameter from outer item
10
11error: aborting due to previous error
12
13For more information about this error, try `rustc --explain E0401`.