summary refs log tree commit diff
path: root/src/test/ui/span/slice-borrow.nll.stderr
blob: 52ca125f8b62ebeb30402a91a4ad8d77795773e3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
error: compilation successful
  --> $DIR/slice-borrow.rs:13:1
   |
LL | / fn main() { #![rustc_error] // rust-lang/rust#49855
LL | |     let y;
LL | |     {
LL | |         let x: &[isize] = &vec![1, 2, 3, 4, 5];
LL | |         y = &x[1..];
LL | |     }
LL | | }
   | |_^

error: aborting due to previous error