Sign in
android
/
toolchain
/
rustc
/
refs/heads/main
/
.
/
tests
/
ui
/
rfcs
/
rfc-2093-infer-outlives
/
dont-infer-static.rs
blob: d3940b13b11ae71bdd418db61fdf92cae93f986b [
file
] [
log
] [
blame
] [
edit
]
/*
* We don't infer `T: 'static` outlives relationships.
*/
struct
Foo
<
U
>
{
bar
:
Bar
<
U
>
//~ ERROR the parameter type `U` may not live long enough [E0310]
}
struct
Bar
<
T
:
'
static
>
{
x
:
T
,
}
fn
main
()
{}