]> git.lizzy.rs Git - rust.git/blobdiff - tests/ui/inline-const/const-expr-lifetime-err.stderr
Rollup merge of #107204 - euclio:assoc-const-suggestion, r=petrochenkov
[rust.git] / tests / ui / inline-const / const-expr-lifetime-err.stderr
index a23f7c9a796c53b1a74726d14c1efccdcadb12f0..443fcf89c4e11d1aa8c5f6c0ee2a02e4b41bcac3 100644 (file)
@@ -4,6 +4,7 @@ error[E0597]: `y` does not live long enough
 LL | fn foo<'a>() {
    |        -- lifetime `'a` defined here
 LL |     let y = ();
+   |         - binding `y` declared here
 LL |     equate(InvariantRef::new(&y), const { InvariantRef::<'a>::NEW });
    |            ------------------^^-
    |            |                 |