blob: 06af0b765d046e752757876b4109d7944e11a3c4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
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<&()>`
}
|