14 lines
131 B
Rust
14 lines
131 B
Rust
|
struct Cat;
|
||
|
|
||
|
fn bar(_: &Cat) {
|
||
|
}
|
||
|
|
||
|
fn foo(cat: &mut Cat) {
|
||
|
bar(&*cat);
|
||
|
}
|
||
|
|
||
|
fn main() {
|
||
|
let mut mimi = ~Cat;
|
||
|
foo(mimi);
|
||
|
}
|