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:
parent
a6236fa460
commit
38e0d58d7d
1 changed files with 8 additions and 0 deletions
8
tests/ui/lint/lint-cap-trait-bounds.rs
Normal file
8
tests/ui/lint/lint-cap-trait-bounds.rs
Normal 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() {}
|
Loading…
Add table
Reference in a new issue