Skip to content

Commit 38e0d58

Browse files
committed
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()`).
1 parent a6236fa commit 38e0d58

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)