mirror of
https://github.com/rust-lang/rust.git
synced 2025-04-13 04:26:48 +00:00
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
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