Sign in
android
/
toolchain
/
rustc
/
d720b3f2ba07cb42ff7b311589c99daefe3aaa22
/
.
/
tests
/
ui
/
suggestions
/
issue-90213-expected-boxfuture-self-ice.rs
blob: 1e36b2fabf2c07deda90b94086eb8c926d3cba99 [
file
] [
log
] [
blame
]
// Checks that we do not ICE when comparing `Self` to `Pin`
// edition:2021
struct
S
;
impl
S
{
fn
foo
(
_
:
Box
<
Option
<
S
>>)
{}
fn
bar
()
{
Self
::
foo
(
None
)
//~ ERROR mismatched types
}
}
fn
main
()
{}