]> git.lizzy.rs Git - rust.git/blob - src/test/ui/borrowck/borrowck-move-out-of-overloaded-deref.rs
Rollup merge of #102488 - compiler-errors:gat-compatibility, r=oli-obk
[rust.git] / src / test / ui / borrowck / borrowck-move-out-of-overloaded-deref.rs
1 use std::rc::Rc;
2
3 pub fn main() {
4     let _x = *Rc::new("hi".to_string());
5     //~^ ERROR cannot move out of an `Rc`
6 }