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

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:
Martin Nordholts 2023-07-28 11:01:53 +02:00
parent a6236fa460
commit 38e0d58d7d

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() {}