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

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

7 lines
119 B
Rust
Raw Normal View History

use std::rc::Rc;
pub fn main() {
2014-05-25 05:10:11 -05:00
let _x = *Rc::new("hi".to_string());
//~^ ERROR cannot move out of an `Rc`
}