]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/issue-55511.rs
Rollup merge of #57132 - daxpedda:master, r=steveklabnik
[rust.git] / src / test / ui / issue-55511.rs
index 93bd78c44d946ede8df6ec63711464492de141be..4b9475ba627183092b85f9a2d406018893c8c6ed 100644 (file)
@@ -11,6 +11,7 @@ impl<'a, T> Foo<'a> for T {
 fn main() {
     let a = 22;
     let b = Some(Cell::new(&a));
+    //~^ ERROR `a` does not live long enough [E0597]
     match b {
         <() as Foo<'static>>::C => { }
         _ => { }