// Test that you cannot *directly* dispatch on lifetime requirements trait MyTrait { fn foo() {} } impl MyTrait for T {} impl MyTrait for T {} //~ ERROR E0119 fn main() {}