]> git.lizzy.rs Git - rust.git/blob - tests/ui/async-await/issues/issue-66958-non-copy-infered-type-arg.rs
Rollup merge of #107061 - compiler-errors:new-solver-new-candidates-3, r=lcnr
[rust.git] / tests / 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() {}