Sign in
android
/
toolchain
/
rustc
/
5139364148b53d79de1b5e778004d41a6a33a4a2
/
.
/
tests
/
ui
/
impl-trait
/
in-trait
/
default-method-constraint.rs
blob: 8ab2e2797f1a76a2f823cb07151870723319acc9 [
file
] [
log
] [
blame
]
// check-pass
// This didn't work in the previous default RPITIT method hack attempt
trait
Foo
{
fn
bar
(
x
:
bool
)
->
impl
Sized
{
if
x
{
let
_
:
u32
=
Self
::
bar
(!
x
);
}
Default
::
default
()
}
}
fn
main
()
{}