diff options
| author | Oli Scherer <git-spam-no-reply9815368754983@oli-obk.de> | 2023-10-31 13:58:03 +0000 |
|---|---|---|
| committer | Oli Scherer <git-spam-no-reply9815368754983@oli-obk.de> | 2023-10-31 13:58:03 +0000 |
| commit | 4512f211ae77306b0cd0686a7871d56edbf36d30 (patch) | |
| tree | 2a296a2f9a5c125320bbb41e874dd71c01b3bc0c /tests/rustdoc-ui/invalid_const_in_lifetime_position.rs | |
| parent | 22b27120b990aa9ca851819ce95149385da7954d (diff) | |
| download | rust-4512f211ae77306b0cd0686a7871d56edbf36d30.tar.gz rust-4512f211ae77306b0cd0686a7871d56edbf36d30.zip | |
Accept less invalid Rust in rustdoc
Diffstat (limited to 'tests/rustdoc-ui/invalid_const_in_lifetime_position.rs')
| -rw-r--r-- | tests/rustdoc-ui/invalid_const_in_lifetime_position.rs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/rustdoc-ui/invalid_const_in_lifetime_position.rs b/tests/rustdoc-ui/invalid_const_in_lifetime_position.rs index c3f4fd63bac..07fc239a8f8 100644 --- a/tests/rustdoc-ui/invalid_const_in_lifetime_position.rs +++ b/tests/rustdoc-ui/invalid_const_in_lifetime_position.rs @@ -4,3 +4,8 @@ trait X { fn f<'a>(arg : Box<dyn X<Y<1> = &'a ()>>) {} //~^ ERROR associated type takes 1 lifetime argument but 0 lifetime arguments //~| ERROR associated type takes 0 generic arguments but 1 generic argument +//~| ERROR associated type takes 1 lifetime argument but 0 lifetime arguments +//~| ERROR associated type takes 0 generic arguments but 1 generic argument +//~| ERROR associated type takes 1 lifetime argument but 0 lifetime arguments +//~| ERROR associated type takes 0 generic arguments but 1 generic argument +//~| ERROR trait `X` cannot be made into an object |
