]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/lub-match.stderr
Rollup merge of #57132 - daxpedda:master, r=steveklabnik
[rust.git] / src / test / ui / lub-match.stderr
index 3543676ad2f2e9abf53dc89ed5c79359121d62e6..0db27f91717b0a7fe4a862decccf0d2e78b92fa3 100644 (file)
@@ -1,25 +1,25 @@
 error[E0312]: lifetime of reference outlives lifetime of borrowed content...
-  --> $DIR/lub-match.rs:40:13
+  --> $DIR/lub-match.rs:30:13
    |
 LL |             s //~ ERROR E0312
    |             ^
    |
    = note: ...the reference is valid for the static lifetime...
-note: ...but the borrowed content is only valid for the lifetime 'a as defined on the function body at 35:17
-  --> $DIR/lub-match.rs:35:17
+note: ...but the borrowed content is only valid for the lifetime 'a as defined on the function body at 25:17
+  --> $DIR/lub-match.rs:25:17
    |
 LL | pub fn opt_str2<'a>(maybestr: &'a Option<String>) -> &'static str {
    |                 ^^
 
 error[E0312]: lifetime of reference outlives lifetime of borrowed content...
-  --> $DIR/lub-match.rs:49:13
+  --> $DIR/lub-match.rs:39:13
    |
 LL |             s //~ ERROR E0312
    |             ^
    |
    = note: ...the reference is valid for the static lifetime...
-note: ...but the borrowed content is only valid for the lifetime 'a as defined on the function body at 45:17
-  --> $DIR/lub-match.rs:45:17
+note: ...but the borrowed content is only valid for the lifetime 'a as defined on the function body at 35:17
+  --> $DIR/lub-match.rs:35:17
    |
 LL | pub fn opt_str3<'a>(maybestr: &'a Option<String>) -> &'static str {
    |                 ^^