fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
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