]> git.lizzy.rs Git - rust.git/blob - src/test/ui/async-await/issues/issue-66958-non-copy-infered-type-arg.rs
Auto merge of #75912 - scottmcm:manuallydrop-vs-forget, r=Mark-Simulacrum
[rust.git] / src / test / ui / async-await / issues / issue-66958-non-copy-infered-type-arg.rs
1 // edition:2018
2
3 struct Ia<S>(S);
4
5 impl<S> Ia<S> {
6     fn partial(_: S) {}
7     fn full(self) {}
8
9     async fn crash(self) {
10         Self::partial(self.0);
11         Self::full(self); //~ ERROR use of partially moved value: `self`
12     }
13 }
14
15 fn main() {}