diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2023-07-28 19:51:17 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-07-28 19:51:17 +0200 |
| commit | a4b9405c4af779c995db1687d717dcaed868c86f (patch) | |
| tree | c40e50d937a72d2d4423aed7875938a1b4caf09c | |
| parent | 048794d62445c03e90b738f936cd0aac80e72a87 (diff) | |
| parent | 38e0d58d7d67a4347b85ac26aa35df573df86621 (diff) | |
| download | rust-a4b9405c4af779c995db1687d717dcaed868c86f.tar.gz rust-a4b9405c4af779c995db1687d717dcaed868c86f.zip | |
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()`).
| -rw-r--r-- | tests/ui/lint/lint-cap-trait-bounds.rs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/ui/lint/lint-cap-trait-bounds.rs b/tests/ui/lint/lint-cap-trait-bounds.rs new file mode 100644 index 00000000000..d9c28dd0aa6 --- /dev/null +++ b/tests/ui/lint/lint-cap-trait-bounds.rs @@ -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() {} |
