blob: 06af0b765d046e752757876b4109d7944e11a3c4 [file] [log] [blame] [edit]
use std::pin::Pin;
fn method(a: Pin<&()>) {} //~NOTE function defined here
fn main() {
let a = &mut ();
let a = Pin::new(a);
method(a);
//~^ ERROR mismatched types
//~| NOTE arguments to this function are incorrect
//~| NOTE types differ in mutability
//~| NOTE expected struct `Pin<&()>`
}