Move /src/test to /tests
This commit is contained in:
parent
ca855e6e42
commit
cf2dff2b1e
27592 changed files with 0 additions and 0 deletions
|
@ -1,19 +0,0 @@
|
|||
#[derive(Debug)]
|
||||
struct R {
|
||||
i:isize
|
||||
}
|
||||
|
||||
fn r(i:isize) -> R { R { i: i } }
|
||||
|
||||
impl Drop for R {
|
||||
fn drop(&mut self) {}
|
||||
}
|
||||
|
||||
fn main() {
|
||||
// This can't make sense as it would copy the classes
|
||||
let i = vec![r(0)];
|
||||
let j = vec![r(1)];
|
||||
let k = i + j;
|
||||
//~^ ERROR cannot add `Vec<R>` to `Vec<R>`
|
||||
println!("{:?}", j);
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue