blob: a43a1936678ff7288ec55faa73ce4c00a00a41ab [file] [log] [blame]
struct Test;
struct Test2(Option<Test>);
impl Drop for Test {
fn drop(&mut self) {
println!("dropping!");
}
}
impl Drop for Test2 {
fn drop(&mut self) {}
}
fn stuff() {
let mut x : (Test2, Test2);
(x.0).0 = Some(Test); //~ ERROR E0381
}
fn main() {
stuff()
}