2015-12-28 17:40:11 -06:00
|
|
|
// Test that you cannot *directly* dispatch on lifetime requirements
|
|
|
|
|
2018-12-28 17:11:13 -06:00
|
|
|
// revisions: old re
|
|
|
|
|
|
|
|
#![cfg_attr(re, feature(re_rebalance_coherence))]
|
|
|
|
|
2017-02-25 15:16:27 -06:00
|
|
|
trait MyTrait { fn foo() {} }
|
2015-12-28 17:40:11 -06:00
|
|
|
|
|
|
|
impl<T> MyTrait for T {}
|
2018-12-28 17:11:13 -06:00
|
|
|
impl<T: 'static> MyTrait for T {}
|
|
|
|
//[old]~^ ERROR E0119
|
|
|
|
//[re]~^^ ERROR E0119
|
2015-12-28 17:40:11 -06:00
|
|
|
|
|
|
|
fn main() {}
|