Skip to content

Commit

Permalink
Rollup merge of rust-lang#114164 - Enselic:lint-cap-trait-bounds, r=c…
Browse files Browse the repository at this point in the history
…ompiler-errors

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

Closes rust-lang#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()`).
  • Loading branch information
matthiaskrgr authored Jul 28, 2023
2 parents 048794d + 38e0d58 commit a4b9405
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions tests/ui/lint/lint-cap-trait-bounds.rs
Original file line number Diff line number Diff line change
@@ -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() {}

0 comments on commit a4b9405

Please sign in to comment.