Logo
Explore Help
Register Sign In
rust-lang/rust
1
0
Fork 0
You've already forked rust
Code Issues Pull Requests Actions 1 Packages Projects Releases Wiki Activity
Files
6b2c3117184e9fff432e84f8d75417056d757113
rust/src/test/ui/parser/trait-bounds-not-on-impl.rs

12 lines
174 B
Rust
Raw Normal View History

add -Z continue-parse-after-error to parse-fail tests 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.
2016-11-01 12:57:23 -04:00
// compile-flags: -Z parse-only -Z continue-parse-after-error
Return nonzero exit code if there are errors at a stop point
2015-02-09 20:01:45 +01:00
Add tests for not-kind-checked trait bounds.
2013-06-19 13:55:30 -04:00
trait Foo {
}
struct Bar;
syntax: Rewrite parsing of impls Properly parse impls for the never type `!` Recover from missing `for` in `impl Trait for Type` Prohibit inherent default impls and default impls of auto traits Change wording in more diagnostics to use "auto traits" Some minor code cleanups in the parser
2017-12-02 22:15:03 +03:00
impl Foo + Owned for Bar { //~ ERROR expected a trait, found type
Add tests for not-kind-checked trait bounds.
2013-06-19 13:55:30 -04:00
}
fn main() { }
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.24.6 Page: 2892ms Template: 3ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API