blob: d2cd2b88ab706fe93280e9ce0a61e703c6139ec4 [file] [log] [blame]
struct Foo {
}
fn foo(&foo: Foo) { //~ ERROR mismatched types
}
fn bar(foo: Foo) {
}
fn qux(foo: &Foo) {
}
fn zar(&foo: &Foo) {
}
// The somewhat unexpected help message in this case is courtesy of
// match_default_bindings.
fn agh(&&bar: &u32) { //~ ERROR mismatched types
}
fn bgh(&&bar: u32) { //~ ERROR mismatched types
}
fn ugh(&[bar]: &u32) { //~ ERROR expected an array or slice
}
fn main() {}