Sign in
android
/
toolchain
/
rustc
/
f7ad1c480b8dc4097ef67cd82ec1c5b706e10950
/
.
/
src
/
test
/
ui
/
const-generics
/
defaults
/
simple-defaults.rs
blob: 6a782d2238c7c29f195989a007752296c4b039af [
file
] [
log
] [
blame
]
// run-pass
// Checks that type param defaults are allowed after const params.
#![
allow
(
dead_code
)]
struct
FixedOutput
<
'
a
,
const
N
:
usize
,
T
=
u32
>
{
out
:
&
'
a
[
T
;
N
],
}
trait
FixedOutputter
{
fn
out
(&
self
)
->
FixedOutput
<
'
_
,
10
>;
}
fn
main
()
{}