mirror of
https://github.com/rust-lang/rust.git
synced 2025-02-17 01:13:11 +00:00
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:
commit
a4b9405c4a
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…
Reference in New Issue
Block a user