about summary refs log tree commit diff
path: root/tests/ui/implied-bounds/implied-bounds-on-trait-hierarchy-1.stderr
blob: f44defccf5892bd5f5c6ccf8bce090c2337f6eae (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
error[E0597]: `x` does not live long enough
  --> $DIR/implied-bounds-on-trait-hierarchy-1.rs:34:23
   |
LL |         let x = "Hello World".to_string();
   |             - binding `x` declared here
LL |         subs_to_soup((x.as_str(), &mut d));
   |                       ^ borrowed value does not live long enough
LL |
LL |     }
   |     - `x` dropped here while still borrowed
LL |     println!("{}", d);
   |                    - borrow later used here

error: aborting due to 1 previous error

For more information about this error, try `rustc --explain E0597`.