fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #68568 - pietroalbini:stable-next, r=pietroalbini5e1a799842b

1.41.0
384 B11 linesraw
1error[E0515]: cannot return value referencing local data `*b`
2  --> $DIR/issue-12470.rs:29:5
3   |
4LL |     let bb: &B = &*b;
5   |                  --- `*b` is borrowed here
6LL |     make_a(bb)
7   |     ^^^^^^^^^^ returns a value referencing data owned by the current function
8
9error: aborting due to previous error
10
11For more information about this error, try `rustc --explain E0515`.