6236ee14af
The new handling fixed a latent bug in the parser error handling where it would only abort after the second error (when configured to stop after the first error). This is because the check for `error_count != 0` was occuring before the increment. Since the increment is tied to the `emit()` call now this no longer occurs.
20 lines
748 B
Rust
20 lines
748 B
Rust
// Copyright 2012 The Rust Project Developers. See the COPYRIGHT
|
|
// file at the top-level directory of this distribution and at
|
|
// http://rust-lang.org/COPYRIGHT.
|
|
//
|
|
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
|
|
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
|
|
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
|
|
// option. This file may not be copied, modified, or distributed
|
|
// except according to those terms.
|
|
|
|
// compile-flags: -Z parse-only -Z continue-parse-after-error
|
|
|
|
use std::fmt::Debug;
|
|
|
|
fn main() {
|
|
let x: Box<Debug+> = box 3 as Box<Debug+>;
|
|
//~^ ERROR at least one type parameter bound must be specified
|
|
//~^^ ERROR at least one type parameter bound must be specified
|
|
}
|