Sign in
android
/
toolchain
/
rustc
/
refs/heads/main
/
.
/
tests
/
ui
/
const-generics
/
issue-46511.rs
blob: a015b7a965e2277597f497d9b01ad0584a42560c [
file
] [
log
] [
blame
] [
edit
]
//@ check-fail
struct
Foo
<
'a> //~ ERROR parameter `'
a
`
is never used
[
E0392
]
{
_a
:
[
u8
;
std
::
mem
::
size_of
::<&
'
a
mut
u8
>()]
//~ ERROR generic parameters may not be used in const operations
}
pub
fn
main
()
{}