Sign in
android
/
toolchain
/
rustc
/
5c0824a599f2f1f4dcb9c92edf09f6c1b555988d
/
.
/
tests
/
ui
/
const-generics
/
invalid-const-arg-for-type-param.rs
blob: bf10f471dc51cda47a4a4e57efb8a25e236c9e87 [
file
] [
log
] [
blame
]
use
std
::
convert
::
TryInto
;
struct
S
;
fn
main
()
{
let
_
:
u32
=
5i32.try
_into
::<
32
>().
unwrap
();
//~^ ERROR method takes
S
.
f
::<
0
>();
//~^ ERROR no method named `f`
S
::<
0
>;
//~^ ERROR struct takes 0
}