@@ -332,5 +332,75 @@ help: make the function `const`
332332LL | const fn mut_add(x: &mut i32) {
333333 | +++++
334334
335- error: aborting due to 25 previous errors
335+ error: this could be a `const fn`
336+ --> tests/ui/missing_const_for_fn/could_be_const.rs:239:9
337+ |
338+ LL | / pub fn new_1_61() -> Self {
339+ LL | |
340+ LL | | Self { _t: None }
341+ LL | | }
342+ | |_________^
343+ |
344+ help: make the function `const`
345+ |
346+ LL | pub const fn new_1_61() -> Self {
347+ | +++++
348+
349+ error: this could be a `const fn`
350+ --> tests/ui/missing_const_for_fn/could_be_const.rs:251:9
351+ |
352+ LL | / pub fn new_1_60() -> Self {
353+ LL | |
354+ LL | | Self { _t: None }
355+ LL | | }
356+ | |_________^
357+ |
358+ help: make the function `const`
359+ |
360+ LL | pub const fn new_1_60() -> Self {
361+ | +++++
362+
363+ error: this could be a `const fn`
364+ --> tests/ui/missing_const_for_fn/could_be_const.rs:257:9
365+ |
366+ LL | / pub fn new_1_61() -> Self {
367+ LL | |
368+ LL | | Self { _t: None }
369+ LL | | }
370+ | |_________^
371+ |
372+ help: make the function `const`
373+ |
374+ LL | pub const fn new_1_61() -> Self {
375+ | +++++
376+
377+ error: this could be a `const fn`
378+ --> tests/ui/missing_const_for_fn/could_be_const.rs:269:9
379+ |
380+ LL | / pub fn new_1_60() -> Self {
381+ LL | |
382+ LL | | Self { _t: None }
383+ LL | | }
384+ | |_________^
385+ |
386+ help: make the function `const`
387+ |
388+ LL | pub const fn new_1_60() -> Self {
389+ | +++++
390+
391+ error: this could be a `const fn`
392+ --> tests/ui/missing_const_for_fn/could_be_const.rs:275:9
393+ |
394+ LL | / pub fn new_1_61() -> Self {
395+ LL | |
396+ LL | | Self { _t: None }
397+ LL | | }
398+ | |_________^
399+ |
400+ help: make the function `const`
401+ |
402+ LL | pub const fn new_1_61() -> Self {
403+ | +++++
404+
405+ error: aborting due to 30 previous errors
336406
0 commit comments