Sign in
fuchsia
/
third_party
/
rust
/
7de9402b77ded0d8ec9e1c554521b2121449ef2b
/
.
/
src
/
test
/
ui
/
const-generics
/
invalid-const-arg-for-type-param.rs
blob: b069cd89680c18f1fabdec11692c1107c3a5f9d8 [
file
] [
log
] [
blame
]
use
std
::
convert
::
TryInto
;
struct
S
;
fn
main
()
{
let
_
:
u32
=
5i32.try
_into
::<
32
>().
unwrap
();
//~ ERROR wrong number of const arguments
S
.
f
::<
0
>();
//~ ERROR no method named `f`
S
::<
0
>;
//~ ERROR wrong number of const arguments
}