Rollup merge of #114164 - Enselic:lint-cap-trait-bounds, r=compiler-errors

Add regression test for `--cap-lints allow` and trait bounds warning

Closes #43134

I have verified that the test fails if stderr begins to contain output by making sure the test fails when I add

    eprintln!("some output on stderr");

to the compiler (I added it to `fn build_session()`).
This commit is contained in:
Matthias Krüger 2023-07-28 19:51:17 +02:00 committed by GitHub
commit a4b9405c4a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -0,0 +1,8 @@
// Regression test for https://github.com/rust-lang/rust/issues/43134
// check-pass
// compile-flags: --cap-lints allow
type Foo<T: Clone> = Option<T>;
fn main() {}