Sign in
fuchsia
/
third_party
/
github.com
/
rust-lang
/
rust
/
86e0ff47a0d1afcbe9f0c8cdb54f60bb18da20df
/
.
/
src
/
test
/
ui
/
issues
/
issue-18423.rs
blob: a81b32f050c3861e48979f6adb0cfb8ce00f46d5 [
file
] [
log
] [
blame
]
// Test that `Box` cannot be used with a lifetime argument.
struct
Foo
<
'
a
>
{
x
:
Box
<
'
a
,
isize
>
//~^ ERROR this struct takes 0 lifetime arguments but 1 lifetime argument was supplied
}
fn
main
()
{
}