fork/rust

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

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

master
548 B14 linesraw
1error: defaults for const parameters are only allowed in `struct`, `enum`, `type`, or `trait` definitions
2  --> $DIR/issue-105257.rs:5:12
3   |
4LL |     fn fnc<const N: usize = "">(&self) {}
5   |            ^^^^^^^^^^^^^^^^^^^
6
7error: defaults for const parameters are only allowed in `struct`, `enum`, `type`, or `trait` definitions
8  --> $DIR/issue-105257.rs:6:12
9   |
10LL |     fn foo<const N: usize = { std::mem::size_of::<T>() }>(&self) {}
11   |            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
12
13error: aborting due to 2 previous errors
14