Sign in
android
/
toolchain
/
rustc
/
5c0824a599f2f1f4dcb9c92edf09f6c1b555988d
/
.
/
tests
/
ui
/
issues
/
issue-18423.rs
blob: 675fd041154beb6b56b823154f8d39a212c48bdb [
file
] [
log
] [
blame
]
// Test that `Box` cannot be used with a lifetime argument.
struct
Foo
<
'
a
>
{
x
:
Box
<
'
a
,
isize
>
//~^ ERROR struct takes 0 lifetime arguments but 1 lifetime argument was supplied
}
fn
main
()
{
}