]> git.lizzy.rs Git - rust.git/blob - src/test/ui/suggestions/issue-90213-expected-boxfuture-self-ice.rs
Rollup merge of #89876 - AlexApps99:const_ops, r=oli-obk
[rust.git] / src / test / ui / suggestions / issue-90213-expected-boxfuture-self-ice.rs
1 // Checks that we do not ICE when comparing `Self` to `Pin`
2 // edition:2021
3
4 struct S;
5
6 impl S {
7     fn foo(_: Box<Option<S>>) {}
8     fn bar() {
9         Self::foo(None) //~ ERROR mismatched types
10     }
11 }
12
13 fn main() {}