auto merge of #17028 : pcwalton/rust/higher-rank-trait-lifetimes, r=pnkfelix

They will ICE during typechecking if used, because they depend on trait
reform.

This is part of unboxed closures.

r? @nikomatsakis
This commit is contained in:
bors 2014-09-23 14:30:40 +00:00
commit d80cd3d9bc
10 changed files with 128 additions and 10 deletions

View file

@ -9,6 +9,7 @@
// except according to those terms.
struct Foo<'a, 'a> { //~ ERROR lifetime name `'a` declared twice
//~^ ERROR lifetime name `'a` declared twice
x: &'a int
}

View file

@ -9,6 +9,7 @@
// except according to those terms.
struct Foo<'static> { //~ ERROR illegal lifetime parameter name: `'static`
//~^ ERROR illegal lifetime parameter name: `'static`
x: &'static int
}