]> git.lizzy.rs Git - rust.git/blob - src/test/ui/coherence/coherence-no-direct-lifetime-dispatch.rs
Merge commit 'da5a6fb1b65ec6581a67e942a3850f6bc15a552c' into clippyup
[rust.git] / src / test / ui / coherence / coherence-no-direct-lifetime-dispatch.rs
1 // Test that you cannot *directly* dispatch on lifetime requirements
2
3 trait MyTrait { fn foo() {} }
4
5 impl<T> MyTrait for T {}
6 impl<T: 'static> MyTrait for T {}
7 //~^ ERROR E0119
8
9 fn main() {}