rollup merge of #23580: nikomatsakis/pattern-and-overflow

This commit is contained in:
Alex Crichton 2015-03-23 15:10:30 -07:00
commit bed77408df
11 changed files with 88 additions and 104 deletions

View file

@ -33,7 +33,4 @@ fn main() {
0.contains(bits);
//~^ ERROR overflow
//~| ERROR overflow
//~| ERROR overflow
//~| ERROR mismatched types
}

View file

@ -42,12 +42,5 @@ fn is_send<T:Send>() { }
fn main() {
is_send::<A>();
//~^ ERROR overflow evaluating
//~^^ NOTE consider adding a `#![recursion_limit="20"]` attribute to your crate
//~^^^ NOTE required by `is_send`
//~^^^^ ERROR overflow evaluating
//~^^^^^ NOTE consider adding a `#![recursion_limit="20"]` attribute to your crate
//~^^^^^^ NOTE required by `is_send`
//~^^^^^^^ ERROR overflow evaluating
//~^^^^^^^^ NOTE consider adding a `#![recursion_limit="20"]` attribute to your crate
//~^^^^^^^^^ NOTE required by `is_send`
//~| NOTE consider adding a `#![recursion_limit="20"]` attribute to your crate
}