1 error: this could be a const_fn
2 --> $DIR/could_be_const.rs:12:5
4 LL | / pub fn new() -> Self {
11 = note: `-D clippy::missing-const-for-fn` implied by `-D warnings`
13 error: this could be a const_fn
14 --> $DIR/could_be_const.rs:20:1
16 LL | fn one() -> i32 { 1 }
17 | ^^^^^^^^^^^^^^^^^^^^^
19 error: this could be a const_fn
20 --> $DIR/could_be_const.rs:30:1
22 LL | / fn string() -> String {
27 error: this could be a const_fn
28 --> $DIR/could_be_const.rs:35:1
30 LL | unsafe fn four() -> i32 { 4 }
31 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
33 error: this could be a const_fn
34 --> $DIR/could_be_const.rs:38:1
36 LL | / fn generic<T>(t: T) -> T {
41 error: aborting due to 5 previous errors