1 error: this could be a `const fn`
2 --> $DIR/could_be_const.rs:13:5
4 LL | / pub fn new() -> Self {
5 LL | | Self { guess: 42 }
9 = note: `-D clippy::missing-const-for-fn` implied by `-D warnings`
11 error: this could be a `const fn`
12 --> $DIR/could_be_const.rs:17:5
14 LL | / fn const_generic_params<'a, T, const N: usize>(&self, b: &'a [T; N]) -> &'a [T; N] {
19 error: this could be a `const fn`
20 --> $DIR/could_be_const.rs:23:1
22 LL | / fn one() -> i32 {
27 error: this could be a `const fn`
28 --> $DIR/could_be_const.rs:28:1
30 LL | / fn two() -> i32 {
36 error: this could be a `const fn`
37 --> $DIR/could_be_const.rs:34:1
39 LL | / fn string() -> String {
44 error: this could be a `const fn`
45 --> $DIR/could_be_const.rs:39:1
47 LL | / unsafe fn four() -> i32 {
52 error: this could be a `const fn`
53 --> $DIR/could_be_const.rs:44:1
55 LL | / fn generic<T>(t: T) -> T {
60 error: this could be a `const fn`
61 --> $DIR/could_be_const.rs:52:1
63 LL | / fn generic_arr<T: Copy>(t: [T; 1]) -> T {
68 error: this could be a `const fn`
69 --> $DIR/could_be_const.rs:65:9
71 LL | / pub fn b(self, a: &A) -> B {
76 error: this could be a `const fn`
77 --> $DIR/could_be_const.rs:75:5
79 LL | / fn const_fn_stabilized_before_msrv(byte: u8) {
80 LL | | byte.is_ascii_digit();
84 error: aborting due to 10 previous errors