Sign in
fuchsia
/
third_party
/
rust
/
15f159addefd8fea7564ba7617c8af78582b7816
/
.
/
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
()
{}