Skip to content

Commit a4b9405

Browse files
authored
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()`).
2 parents 048794d + 38e0d58 commit a4b9405

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed
+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
// Regression test for https://github.com/rust-lang/rust/issues/43134
2+
3+
// check-pass
4+
// compile-flags: --cap-lints allow
5+
6+
type Foo<T: Clone> = Option<T>;
7+
8+
fn main() {}

0 commit comments

Comments
 (0)