diff options
Diffstat (limited to 'tests/ui/lint/lint-cap-trait-bounds.rs')
-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 000000000..d9c28dd0a --- /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() {} |