]> git.lizzy.rs Git - rust.git/blob - src/test/ui/unique-pinned-nocopy.rs
Add 'src/tools/rust-analyzer/' from commit '977e12a0bdc3e329af179ef3a9d466af9eb613bb'
[rust.git] / src / test / ui / unique-pinned-nocopy.rs
1 #[derive(Debug)]
2 struct R {
3   b: bool,
4 }
5
6 impl Drop for R {
7     fn drop(&mut self) {}
8 }
9
10 fn main() {
11     let i = Box::new(R { b: true });
12     let _j = i.clone(); //~ ERROR the method
13     println!("{:?}", i);
14 }