1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
// run-pass #![allow(dead_code)] #![allow(unused_variables)] #![allow(stable_features)] #![feature(issue_5723_bootstrap)] trait Foo { fn dummy(&self) { } } fn foo<'a>(x: Box<dyn Foo + 'a>) { } fn bar<'a, T: 'a>() { } pub fn main() { }