Sign in
fuchsia
/
third_party
/
rust
/
9d09331e00b02f81c714b0c41ce3a38380dd36a2
/
.
/
src
/
test
/
ui
/
coherence
/
coherence-no-direct-lifetime-dispatch.rs
blob: d466dcac1c48cdde09775f8fc4b5b386ef4064c5 [
file
] [
log
] [
blame
]
// Test that you cannot *directly* dispatch on lifetime requirements
trait
MyTrait
{
fn
foo
()
{}
}
impl
<
T
>
MyTrait
for
T
{}
impl
<
T
:
'
static
>
MyTrait
for
T
{}
//~^ ERROR E0119
fn
main
()
{}