diff --git a/tests/ui/missing_const_for_fn/could_be_const.stderr b/tests/ui/missing_const_for_fn/could_be_const.stderr index 18eff0d1466..63c211f39fa 100644 --- a/tests/ui/missing_const_for_fn/could_be_const.stderr +++ b/tests/ui/missing_const_for_fn/could_be_const.stderr @@ -60,7 +60,7 @@ LL | | } error: this could be a `const fn` --> $DIR/could_be_const.rs:68:9 | -LL | / pub fn new(a: &A) -> B { +LL | / pub fn b(self, a: &A) -> B { LL | | B LL | | } | |_________^