rust/tests/ui/borrowck/borrowck-move-out-of-overloaded-auto-deref.fixed

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

8 lines
150 B
Rust
Raw Normal View History

2023-11-20 17:57:59 -06:00
//@ run-rustfix
use std::rc::Rc;
pub fn main() {
let _x = <Vec<i32> as Clone>::clone(&Rc::new(vec![1, 2])).into_iter();
//~^ ERROR [E0507]
}