Catch forward declarations in default type params at AST conversion.

This commit is contained in:
Kevin Butler 2014-04-17 01:17:23 +01:00
parent 52a53e8ae7
commit f829d208a3
2 changed files with 19 additions and 3 deletions

View file

@ -12,8 +12,7 @@
// Ensure that we get an error and not an ICE for this problematic case.
struct Foo<T = Option<U>, U = bool>;
//~^ ERROR type parameters with a default cannot use forward declared identifiers
fn main() {
let x: Foo;
//~^ ERROR missing type param `U` in the substitution of `std::option::Option<U>`
}