]> git.lizzy.rs Git - rust.git/blobdiff - tests/ui/generic-associated-types/bugs/hrtb-implied-1.stderr
Rollup merge of #107112 - eltociear:patch-19, r=albertlarsan68
[rust.git] / tests / ui / generic-associated-types / bugs / hrtb-implied-1.stderr
index 1c9abc4e837c518aa888649f2b5b57b0265631fa..362aeae23614fcf972a6887d860c037f38064ff8 100644 (file)
@@ -3,7 +3,7 @@ error[E0716]: temporary value dropped while borrowed
    |
 LL |     let slice = &mut ();
    |                      ^^ creates a temporary value which is freed while still in use
-...
+LL |     let windows = WindowsMut { slice };
 LL |     print_items::<WindowsMut<'_>>(windows);
    |     -------------------------------------- argument requires that borrow lasts for `'static`
 LL | }