summary refs log tree commit diff
path: root/src/test/ui/span/range-2.nll.stderr
blob: afb319b57d421add0ad4b455962a76212b7a8b17 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
error: compilation successful
  --> $DIR/range-2.rs:13:1
   |
LL | / pub fn main() { #![rustc_error] // rust-lang/rust#49855
LL | |     let r = {
LL | |         let a = 42;
LL | |         let b = 42;
...  |
LL | |     //~| ERROR `b` does not live long enough
LL | | }
   | |_^

error: aborting due to previous error