Sign in
rust
/
rust-lang
/
rust
/
refs/heads/perf-tmp
/
.
/
tests
/
ui
/
impl-trait
/
in-trait
/
default-method-constraint.rs
blob: 0615e5b3a15e9dfbd4df7fc11680918368e557c5 [
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
()
{}