Move /src/test to /tests
This commit is contained in:
parent
ca855e6e42
commit
cf2dff2b1e
27592 changed files with 0 additions and 0 deletions
|
@ -1,16 +0,0 @@
|
|||
struct Cat {
|
||||
meows : usize,
|
||||
how_hungry : isize,
|
||||
}
|
||||
|
||||
fn cat(in_x : usize, in_y : isize) -> Cat {
|
||||
Cat {
|
||||
meows: in_x,
|
||||
how_hungry: in_y
|
||||
}
|
||||
}
|
||||
|
||||
fn main() {
|
||||
let nyan : Cat = cat(52, 99);
|
||||
nyan.how_hungry = 0; //~ ERROR cannot assign
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue