2015-12-28 15:40:11 -08:00
|
|
|
// Test that you cannot *directly* dispatch on lifetime requirements
|
|
|
|
|
2017-02-25 16:16:27 -05:00
|
|
|
trait MyTrait { fn foo() {} }
|
2015-12-28 15:40:11 -08:00
|
|
|
|
|
|
|
impl<T> MyTrait for T {}
|
2018-12-29 00:11:13 +01:00
|
|
|
impl<T: 'static> MyTrait for T {}
|
2019-10-26 17:28:02 +02:00
|
|
|
//~^ ERROR E0119
|
2015-12-28 15:40:11 -08:00
|
|
|
|
|
|
|
fn main() {}
|