rust/tests/ui/lint/lint-cap-trait-bounds.rs
Martin Nordholts 38e0d58d7d 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()`).
2023-07-28 11:11:29 +02:00

9 lines
168 B
Rust

// 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() {}