]> git.lizzy.rs Git - rust.git/blob - src/test/ui/copy-a-resource.rs
Rollup merge of #69425 - lcnr:make_contiguous, r=Amanieu
[rust.git] / src / test / ui / copy-a-resource.rs
1 // FIXME: missing sysroot spans (#53081)
2 // ignore-i586-unknown-linux-gnu
3 // ignore-i586-unknown-linux-musl
4 // ignore-i686-unknown-linux-musl
5
6 #[derive(Debug)]
7 struct Foo {
8   i: isize,
9 }
10
11 impl Drop for Foo {
12     fn drop(&mut self) {}
13 }
14
15 fn foo(i:isize) -> Foo {
16     Foo {
17         i: i
18     }
19 }
20
21 fn main() {
22     let x = foo(10);
23     let _y = x.clone();
24     //~^ ERROR no method named `clone` found
25     println!("{:?}", x);
26 }