1 // Issue #14603: Check for references to type parameters from the
2 // outer scope (in this case, the trait) used on items in an inner
3 // scope (in this case, the enum).
9 //~^ ERROR can't use generic parameters from outer function
17 //~^ ERROR can't use generic parameters from outer function
23 struct Foo<B> { a: A }
24 //~^ ERROR can't use generic parameters from outer function
31 //~^ ERROR can't use generic parameters from outer function