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