Rollup merge of #134053 - notriddle:notriddle/issue-d, r=GuillaumeGomez

rustdoc: rename `issue-\d+.rs` tests to have meaningful names (part 10)

Follow up https://github.com/rust-lang/rust/pull/130287 et al

As always, it's easier to review the commits one at a time. Don't use the Files Changed tab. It's confusing.
This commit is contained in:
León Orell Valerian Liehr 2024-12-09 23:39:06 +01:00 committed by GitHub
commit 76fbe8d503
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
19 changed files with 95 additions and 86 deletions

View file

@ -2,6 +2,7 @@
//@ compile-flags: --document-private-items
//@ build-pass
//@ only-linux
// https://github.com/rust-lang/rust/issues/107918
#![no_std]
#![no_main]

View file

@ -1,4 +1,5 @@
//@ check-pass
// https://github.com/rust-lang/rust/issues/110900
#![crate_type="lib"]

View file

@ -1,5 +1,6 @@
//@ compile-flags: --document-private-items
//@ edition:2021
// https://github.com/rust-lang/rust/issues/106213
fn use_avx() -> dyn {
//~^ ERROR at least one trait is required for an object type

View file

@ -1,5 +1,5 @@
error[E0224]: at least one trait is required for an object type
--> $DIR/issue-106213.rs:4:17
--> $DIR/ice-bare-dyn-106213.rs:5:17
|
LL | fn use_avx() -> dyn {
| ^^^

View file

@ -1,4 +1,5 @@
//@ compile-flags: -Znormalize-docs
// https://github.com/rust-lang/rust/issues/105742
use std::ops::Index;
pub fn next<'a, T>(s: &'a mut dyn SVec<Item = T, Output = T>) {

View file

@ -1,11 +1,11 @@
error[E0107]: missing generics for associated type `SVec::Item`
--> $DIR/issue-105742.rs:15:21
--> $DIR/ice-generic-type-alias-105742.rs:16:21
|
LL | <Self as SVec>::Item,
| ^^^^ expected 1 lifetime argument
|
note: associated type defined here, with 1 lifetime parameter: `'a`
--> $DIR/issue-105742.rs:59:10
--> $DIR/ice-generic-type-alias-105742.rs:60:10
|
LL | type Item<'a, T>;
| ^^^^ --
@ -15,13 +15,13 @@ LL | <Self as SVec>::Item<'a>,
| ++++
error[E0107]: missing generics for associated type `SVec::Item`
--> $DIR/issue-105742.rs:15:21
--> $DIR/ice-generic-type-alias-105742.rs:16:21
|
LL | <Self as SVec>::Item,
| ^^^^ expected 1 generic argument
|
note: associated type defined here, with 1 generic parameter: `T`
--> $DIR/issue-105742.rs:59:10
--> $DIR/ice-generic-type-alias-105742.rs:60:10
|
LL | type Item<'a, T>;
| ^^^^ -
@ -31,13 +31,13 @@ LL | <Self as SVec>::Item<T>,
| +++
error[E0107]: missing generics for associated type `SVec::Item`
--> $DIR/issue-105742.rs:26:37
--> $DIR/ice-generic-type-alias-105742.rs:27:37
|
LL | Output = <Index<<Self as SVec>::Item,
| ^^^^ expected 1 lifetime argument
|
note: associated type defined here, with 1 lifetime parameter: `'a`
--> $DIR/issue-105742.rs:59:10
--> $DIR/ice-generic-type-alias-105742.rs:60:10
|
LL | type Item<'a, T>;
| ^^^^ --
@ -47,13 +47,13 @@ LL | Output = <Index<<Self as SVec>::Item<'a>,
| ++++
error[E0107]: missing generics for associated type `SVec::Item`
--> $DIR/issue-105742.rs:26:37
--> $DIR/ice-generic-type-alias-105742.rs:27:37
|
LL | Output = <Index<<Self as SVec>::Item,
| ^^^^ expected 1 generic argument
|
note: associated type defined here, with 1 generic parameter: `T`
--> $DIR/issue-105742.rs:59:10
--> $DIR/ice-generic-type-alias-105742.rs:60:10
|
LL | type Item<'a, T>;
| ^^^^ -
@ -63,13 +63,13 @@ LL | Output = <Index<<Self as SVec>::Item<T>,
| +++
error[E0107]: missing generics for associated type `SVec::Item`
--> $DIR/issue-105742.rs:37:30
--> $DIR/ice-generic-type-alias-105742.rs:38:30
|
LL | Output = <Self as SVec>::Item> as SVec>::Item,
| ^^^^ expected 1 lifetime argument
|
note: associated type defined here, with 1 lifetime parameter: `'a`
--> $DIR/issue-105742.rs:59:10
--> $DIR/ice-generic-type-alias-105742.rs:60:10
|
LL | type Item<'a, T>;
| ^^^^ --
@ -79,13 +79,13 @@ LL | Output = <Self as SVec>::Item<'a>> as SVec>::Item,
| ++++
error[E0107]: missing generics for associated type `SVec::Item`
--> $DIR/issue-105742.rs:37:30
--> $DIR/ice-generic-type-alias-105742.rs:38:30
|
LL | Output = <Self as SVec>::Item> as SVec>::Item,
| ^^^^ expected 1 generic argument
|
note: associated type defined here, with 1 generic parameter: `T`
--> $DIR/issue-105742.rs:59:10
--> $DIR/ice-generic-type-alias-105742.rs:60:10
|
LL | type Item<'a, T>;
| ^^^^ -
@ -95,13 +95,13 @@ LL | Output = <Self as SVec>::Item<T>> as SVec>::Item,
| +++
error[E0107]: missing generics for associated type `SVec::Item`
--> $DIR/issue-105742.rs:37:46
--> $DIR/ice-generic-type-alias-105742.rs:38:46
|
LL | Output = <Self as SVec>::Item> as SVec>::Item,
| ^^^^ expected 1 lifetime argument
|
note: associated type defined here, with 1 lifetime parameter: `'a`
--> $DIR/issue-105742.rs:59:10
--> $DIR/ice-generic-type-alias-105742.rs:60:10
|
LL | type Item<'a, T>;
| ^^^^ --
@ -111,13 +111,13 @@ LL | Output = <Self as SVec>::Item> as SVec>::Item<'a>,
| ++++
error[E0107]: missing generics for associated type `SVec::Item`
--> $DIR/issue-105742.rs:37:46
--> $DIR/ice-generic-type-alias-105742.rs:38:46
|
LL | Output = <Self as SVec>::Item> as SVec>::Item,
| ^^^^ expected 1 generic argument
|
note: associated type defined here, with 1 generic parameter: `T`
--> $DIR/issue-105742.rs:59:10
--> $DIR/ice-generic-type-alias-105742.rs:60:10
|
LL | type Item<'a, T>;
| ^^^^ -
@ -127,13 +127,13 @@ LL | Output = <Self as SVec>::Item> as SVec>::Item<T>,
| +++
error[E0107]: missing generics for associated type `SVec::Item`
--> $DIR/issue-105742.rs:4:40
--> $DIR/ice-generic-type-alias-105742.rs:5:40
|
LL | pub fn next<'a, T>(s: &'a mut dyn SVec<Item = T, Output = T>) {
| ^^^^ expected 1 lifetime argument
|
note: associated type defined here, with 1 lifetime parameter: `'a`
--> $DIR/issue-105742.rs:59:10
--> $DIR/ice-generic-type-alias-105742.rs:60:10
|
LL | type Item<'a, T>;
| ^^^^ --
@ -143,13 +143,13 @@ LL | pub fn next<'a, T>(s: &'a mut dyn SVec<Item<'_> = T, Output = T>) {
| ++++
error[E0107]: missing generics for associated type `SVec::Item`
--> $DIR/issue-105742.rs:4:40
--> $DIR/ice-generic-type-alias-105742.rs:5:40
|
LL | pub fn next<'a, T>(s: &'a mut dyn SVec<Item = T, Output = T>) {
| ^^^^ expected 1 generic argument
|
note: associated type defined here, with 1 generic parameter: `T`
--> $DIR/issue-105742.rs:59:10
--> $DIR/ice-generic-type-alias-105742.rs:60:10
|
LL | type Item<'a, T>;
| ^^^^ -
@ -159,13 +159,13 @@ LL | pub fn next<'a, T>(s: &'a mut dyn SVec<Item<T> = T, Output = T>) {
| +++
error[E0107]: missing generics for associated type `SVec::Item`
--> $DIR/issue-105742.rs:15:21
--> $DIR/ice-generic-type-alias-105742.rs:16:21
|
LL | <Self as SVec>::Item,
| ^^^^ expected 1 lifetime argument
|
note: associated type defined here, with 1 lifetime parameter: `'a`
--> $DIR/issue-105742.rs:59:10
--> $DIR/ice-generic-type-alias-105742.rs:60:10
|
LL | type Item<'a, T>;
| ^^^^ --
@ -176,13 +176,13 @@ LL | <Self as SVec>::Item<'a>,
| ++++
error[E0107]: missing generics for associated type `SVec::Item`
--> $DIR/issue-105742.rs:15:21
--> $DIR/ice-generic-type-alias-105742.rs:16:21
|
LL | <Self as SVec>::Item,
| ^^^^ expected 1 generic argument
|
note: associated type defined here, with 1 generic parameter: `T`
--> $DIR/issue-105742.rs:59:10
--> $DIR/ice-generic-type-alias-105742.rs:60:10
|
LL | type Item<'a, T>;
| ^^^^ -
@ -193,13 +193,13 @@ LL | <Self as SVec>::Item<T>,
| +++
error[E0107]: missing generics for associated type `SVec::Item`
--> $DIR/issue-105742.rs:26:37
--> $DIR/ice-generic-type-alias-105742.rs:27:37
|
LL | Output = <Index<<Self as SVec>::Item,
| ^^^^ expected 1 lifetime argument
|
note: associated type defined here, with 1 lifetime parameter: `'a`
--> $DIR/issue-105742.rs:59:10
--> $DIR/ice-generic-type-alias-105742.rs:60:10
|
LL | type Item<'a, T>;
| ^^^^ --
@ -210,13 +210,13 @@ LL | Output = <Index<<Self as SVec>::Item<'a>,
| ++++
error[E0107]: missing generics for associated type `SVec::Item`
--> $DIR/issue-105742.rs:26:37
--> $DIR/ice-generic-type-alias-105742.rs:27:37
|
LL | Output = <Index<<Self as SVec>::Item,
| ^^^^ expected 1 generic argument
|
note: associated type defined here, with 1 generic parameter: `T`
--> $DIR/issue-105742.rs:59:10
--> $DIR/ice-generic-type-alias-105742.rs:60:10
|
LL | type Item<'a, T>;
| ^^^^ -
@ -227,13 +227,13 @@ LL | Output = <Index<<Self as SVec>::Item<T>,
| +++
error[E0107]: missing generics for associated type `SVec::Item`
--> $DIR/issue-105742.rs:37:30
--> $DIR/ice-generic-type-alias-105742.rs:38:30
|
LL | Output = <Self as SVec>::Item> as SVec>::Item,
| ^^^^ expected 1 lifetime argument
|
note: associated type defined here, with 1 lifetime parameter: `'a`
--> $DIR/issue-105742.rs:59:10
--> $DIR/ice-generic-type-alias-105742.rs:60:10
|
LL | type Item<'a, T>;
| ^^^^ --
@ -244,13 +244,13 @@ LL | Output = <Self as SVec>::Item<'a>> as SVec>::Item,
| ++++
error[E0107]: missing generics for associated type `SVec::Item`
--> $DIR/issue-105742.rs:37:30
--> $DIR/ice-generic-type-alias-105742.rs:38:30
|
LL | Output = <Self as SVec>::Item> as SVec>::Item,
| ^^^^ expected 1 generic argument
|
note: associated type defined here, with 1 generic parameter: `T`
--> $DIR/issue-105742.rs:59:10
--> $DIR/ice-generic-type-alias-105742.rs:60:10
|
LL | type Item<'a, T>;
| ^^^^ -
@ -261,13 +261,13 @@ LL | Output = <Self as SVec>::Item<T>> as SVec>::Item,
| +++
error[E0107]: missing generics for associated type `SVec::Item`
--> $DIR/issue-105742.rs:37:46
--> $DIR/ice-generic-type-alias-105742.rs:38:46
|
LL | Output = <Self as SVec>::Item> as SVec>::Item,
| ^^^^ expected 1 lifetime argument
|
note: associated type defined here, with 1 lifetime parameter: `'a`
--> $DIR/issue-105742.rs:59:10
--> $DIR/ice-generic-type-alias-105742.rs:60:10
|
LL | type Item<'a, T>;
| ^^^^ --
@ -278,13 +278,13 @@ LL | Output = <Self as SVec>::Item> as SVec>::Item<'a>,
| ++++
error[E0107]: missing generics for associated type `SVec::Item`
--> $DIR/issue-105742.rs:37:46
--> $DIR/ice-generic-type-alias-105742.rs:38:46
|
LL | Output = <Self as SVec>::Item> as SVec>::Item,
| ^^^^ expected 1 generic argument
|
note: associated type defined here, with 1 generic parameter: `T`
--> $DIR/issue-105742.rs:59:10
--> $DIR/ice-generic-type-alias-105742.rs:60:10
|
LL | type Item<'a, T>;
| ^^^^ -
@ -295,13 +295,13 @@ LL | Output = <Self as SVec>::Item> as SVec>::Item<T>,
| +++
error[E0038]: the trait `SVec` cannot be made into an object
--> $DIR/issue-105742.rs:4:31
--> $DIR/ice-generic-type-alias-105742.rs:5:31
|
LL | pub fn next<'a, T>(s: &'a mut dyn SVec<Item = T, Output = T>) {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `SVec` cannot be made into an object
|
note: for a trait to be "dyn-compatible" it needs to allow building a vtable to allow the call to be resolvable dynamically; for more information visit <https://doc.rust-lang.org/reference/items/traits.html#object-safety>
--> $DIR/issue-105742.rs:14:17
--> $DIR/ice-generic-type-alias-105742.rs:15:17
|
LL | pub trait SVec: Index<
| ____________----__^
@ -329,13 +329,13 @@ LL | pub fn next<'a, T>(s: &'a mut impl SVec<Item = T, Output = T>) {
| ~~~~
error[E0107]: missing generics for associated type `SVec::Item`
--> $DIR/issue-105742.rs:15:21
--> $DIR/ice-generic-type-alias-105742.rs:16:21
|
LL | <Self as SVec>::Item,
| ^^^^ expected 1 lifetime argument
|
note: associated type defined here, with 1 lifetime parameter: `'a`
--> $DIR/issue-105742.rs:59:10
--> $DIR/ice-generic-type-alias-105742.rs:60:10
|
LL | type Item<'a, T>;
| ^^^^ --
@ -346,13 +346,13 @@ LL | <Self as SVec>::Item<'a>,
| ++++
error[E0107]: missing generics for associated type `SVec::Item`
--> $DIR/issue-105742.rs:15:21
--> $DIR/ice-generic-type-alias-105742.rs:16:21
|
LL | <Self as SVec>::Item,
| ^^^^ expected 1 generic argument
|
note: associated type defined here, with 1 generic parameter: `T`
--> $DIR/issue-105742.rs:59:10
--> $DIR/ice-generic-type-alias-105742.rs:60:10
|
LL | type Item<'a, T>;
| ^^^^ -
@ -363,13 +363,13 @@ LL | <Self as SVec>::Item<T>,
| +++
error[E0107]: missing generics for associated type `SVec::Item`
--> $DIR/issue-105742.rs:26:37
--> $DIR/ice-generic-type-alias-105742.rs:27:37
|
LL | Output = <Index<<Self as SVec>::Item,
| ^^^^ expected 1 lifetime argument
|
note: associated type defined here, with 1 lifetime parameter: `'a`
--> $DIR/issue-105742.rs:59:10
--> $DIR/ice-generic-type-alias-105742.rs:60:10
|
LL | type Item<'a, T>;
| ^^^^ --
@ -380,13 +380,13 @@ LL | Output = <Index<<Self as SVec>::Item<'a>,
| ++++
error[E0107]: missing generics for associated type `SVec::Item`
--> $DIR/issue-105742.rs:26:37
--> $DIR/ice-generic-type-alias-105742.rs:27:37
|
LL | Output = <Index<<Self as SVec>::Item,
| ^^^^ expected 1 generic argument
|
note: associated type defined here, with 1 generic parameter: `T`
--> $DIR/issue-105742.rs:59:10
--> $DIR/ice-generic-type-alias-105742.rs:60:10
|
LL | type Item<'a, T>;
| ^^^^ -
@ -397,13 +397,13 @@ LL | Output = <Index<<Self as SVec>::Item<T>,
| +++
error[E0107]: missing generics for associated type `SVec::Item`
--> $DIR/issue-105742.rs:37:30
--> $DIR/ice-generic-type-alias-105742.rs:38:30
|
LL | Output = <Self as SVec>::Item> as SVec>::Item,
| ^^^^ expected 1 lifetime argument
|
note: associated type defined here, with 1 lifetime parameter: `'a`
--> $DIR/issue-105742.rs:59:10
--> $DIR/ice-generic-type-alias-105742.rs:60:10
|
LL | type Item<'a, T>;
| ^^^^ --
@ -414,13 +414,13 @@ LL | Output = <Self as SVec>::Item<'a>> as SVec>::Item,
| ++++
error[E0107]: missing generics for associated type `SVec::Item`
--> $DIR/issue-105742.rs:37:30
--> $DIR/ice-generic-type-alias-105742.rs:38:30
|
LL | Output = <Self as SVec>::Item> as SVec>::Item,
| ^^^^ expected 1 generic argument
|
note: associated type defined here, with 1 generic parameter: `T`
--> $DIR/issue-105742.rs:59:10
--> $DIR/ice-generic-type-alias-105742.rs:60:10
|
LL | type Item<'a, T>;
| ^^^^ -
@ -431,13 +431,13 @@ LL | Output = <Self as SVec>::Item<T>> as SVec>::Item,
| +++
error[E0107]: missing generics for associated type `SVec::Item`
--> $DIR/issue-105742.rs:37:46
--> $DIR/ice-generic-type-alias-105742.rs:38:46
|
LL | Output = <Self as SVec>::Item> as SVec>::Item,
| ^^^^ expected 1 lifetime argument
|
note: associated type defined here, with 1 lifetime parameter: `'a`
--> $DIR/issue-105742.rs:59:10
--> $DIR/ice-generic-type-alias-105742.rs:60:10
|
LL | type Item<'a, T>;
| ^^^^ --
@ -448,13 +448,13 @@ LL | Output = <Self as SVec>::Item> as SVec>::Item<'a>,
| ++++
error[E0107]: missing generics for associated type `SVec::Item`
--> $DIR/issue-105742.rs:37:46
--> $DIR/ice-generic-type-alias-105742.rs:38:46
|
LL | Output = <Self as SVec>::Item> as SVec>::Item,
| ^^^^ expected 1 generic argument
|
note: associated type defined here, with 1 generic parameter: `T`
--> $DIR/issue-105742.rs:59:10
--> $DIR/ice-generic-type-alias-105742.rs:60:10
|
LL | type Item<'a, T>;
| ^^^^ -
@ -465,13 +465,13 @@ LL | Output = <Self as SVec>::Item> as SVec>::Item<T>,
| +++
error[E0107]: missing generics for associated type `SVec::Item`
--> $DIR/issue-105742.rs:15:21
--> $DIR/ice-generic-type-alias-105742.rs:16:21
|
LL | <Self as SVec>::Item,
| ^^^^ expected 1 lifetime argument
|
note: associated type defined here, with 1 lifetime parameter: `'a`
--> $DIR/issue-105742.rs:59:10
--> $DIR/ice-generic-type-alias-105742.rs:60:10
|
LL | type Item<'a, T>;
| ^^^^ --
@ -482,13 +482,13 @@ LL | <Self as SVec>::Item<'a>,
| ++++
error[E0107]: missing generics for associated type `SVec::Item`
--> $DIR/issue-105742.rs:15:21
--> $DIR/ice-generic-type-alias-105742.rs:16:21
|
LL | <Self as SVec>::Item,
| ^^^^ expected 1 generic argument
|
note: associated type defined here, with 1 generic parameter: `T`
--> $DIR/issue-105742.rs:59:10
--> $DIR/ice-generic-type-alias-105742.rs:60:10
|
LL | type Item<'a, T>;
| ^^^^ -
@ -499,13 +499,13 @@ LL | <Self as SVec>::Item<T>,
| +++
error[E0107]: missing generics for associated type `SVec::Item`
--> $DIR/issue-105742.rs:26:37
--> $DIR/ice-generic-type-alias-105742.rs:27:37
|
LL | Output = <Index<<Self as SVec>::Item,
| ^^^^ expected 1 lifetime argument
|
note: associated type defined here, with 1 lifetime parameter: `'a`
--> $DIR/issue-105742.rs:59:10
--> $DIR/ice-generic-type-alias-105742.rs:60:10
|
LL | type Item<'a, T>;
| ^^^^ --
@ -516,13 +516,13 @@ LL | Output = <Index<<Self as SVec>::Item<'a>,
| ++++
error[E0107]: missing generics for associated type `SVec::Item`
--> $DIR/issue-105742.rs:26:37
--> $DIR/ice-generic-type-alias-105742.rs:27:37
|
LL | Output = <Index<<Self as SVec>::Item,
| ^^^^ expected 1 generic argument
|
note: associated type defined here, with 1 generic parameter: `T`
--> $DIR/issue-105742.rs:59:10
--> $DIR/ice-generic-type-alias-105742.rs:60:10
|
LL | type Item<'a, T>;
| ^^^^ -
@ -533,13 +533,13 @@ LL | Output = <Index<<Self as SVec>::Item<T>,
| +++
error[E0107]: missing generics for associated type `SVec::Item`
--> $DIR/issue-105742.rs:37:30
--> $DIR/ice-generic-type-alias-105742.rs:38:30
|
LL | Output = <Self as SVec>::Item> as SVec>::Item,
| ^^^^ expected 1 lifetime argument
|
note: associated type defined here, with 1 lifetime parameter: `'a`
--> $DIR/issue-105742.rs:59:10
--> $DIR/ice-generic-type-alias-105742.rs:60:10
|
LL | type Item<'a, T>;
| ^^^^ --
@ -550,13 +550,13 @@ LL | Output = <Self as SVec>::Item<'a>> as SVec>::Item,
| ++++
error[E0107]: missing generics for associated type `SVec::Item`
--> $DIR/issue-105742.rs:37:30
--> $DIR/ice-generic-type-alias-105742.rs:38:30
|
LL | Output = <Self as SVec>::Item> as SVec>::Item,
| ^^^^ expected 1 generic argument
|
note: associated type defined here, with 1 generic parameter: `T`
--> $DIR/issue-105742.rs:59:10
--> $DIR/ice-generic-type-alias-105742.rs:60:10
|
LL | type Item<'a, T>;
| ^^^^ -
@ -567,13 +567,13 @@ LL | Output = <Self as SVec>::Item<T>> as SVec>::Item,
| +++
error[E0107]: missing generics for associated type `SVec::Item`
--> $DIR/issue-105742.rs:37:46
--> $DIR/ice-generic-type-alias-105742.rs:38:46
|
LL | Output = <Self as SVec>::Item> as SVec>::Item,
| ^^^^ expected 1 lifetime argument
|
note: associated type defined here, with 1 lifetime parameter: `'a`
--> $DIR/issue-105742.rs:59:10
--> $DIR/ice-generic-type-alias-105742.rs:60:10
|
LL | type Item<'a, T>;
| ^^^^ --
@ -584,13 +584,13 @@ LL | Output = <Self as SVec>::Item> as SVec>::Item<'a>,
| ++++
error[E0107]: missing generics for associated type `SVec::Item`
--> $DIR/issue-105742.rs:37:46
--> $DIR/ice-generic-type-alias-105742.rs:38:46
|
LL | Output = <Self as SVec>::Item> as SVec>::Item,
| ^^^^ expected 1 generic argument
|
note: associated type defined here, with 1 generic parameter: `T`
--> $DIR/issue-105742.rs:59:10
--> $DIR/ice-generic-type-alias-105742.rs:60:10
|
LL | type Item<'a, T>;
| ^^^^ -
@ -601,13 +601,13 @@ LL | Output = <Self as SVec>::Item> as SVec>::Item<T>,
| +++
error[E0107]: missing generics for associated type `SVec::Item`
--> $DIR/issue-105742.rs:61:38
--> $DIR/ice-generic-type-alias-105742.rs:62:38
|
LL | fn len(&self) -> <Self as SVec>::Item;
| ^^^^ expected 1 lifetime argument
|
note: associated type defined here, with 1 lifetime parameter: `'a`
--> $DIR/issue-105742.rs:59:10
--> $DIR/ice-generic-type-alias-105742.rs:60:10
|
LL | type Item<'a, T>;
| ^^^^ --
@ -617,13 +617,13 @@ LL | fn len(&self) -> <Self as SVec>::Item<'_>;
| ++++
error[E0107]: missing generics for associated type `SVec::Item`
--> $DIR/issue-105742.rs:61:38
--> $DIR/ice-generic-type-alias-105742.rs:62:38
|
LL | fn len(&self) -> <Self as SVec>::Item;
| ^^^^ expected 1 generic argument
|
note: associated type defined here, with 1 generic parameter: `T`
--> $DIR/issue-105742.rs:59:10
--> $DIR/ice-generic-type-alias-105742.rs:60:10
|
LL | type Item<'a, T>;
| ^^^^ -

View file

@ -0,0 +1,5 @@
// https://github.com/rust-lang/rust/issues/105737
impl Vec<lol> {}
//~^ ERROR
pub fn lol() {}

View file

@ -1,5 +1,5 @@
error[E0747]: constant provided when a type was expected
--> $DIR/issue-105737.rs:1:10
--> $DIR/ice-impl-fn-generic-105737.rs:2:10
|
LL | impl Vec<lol> {}
| ^^^

View file

@ -1,4 +1,5 @@
//@ check-pass
// https://github.com/rust-lang/rust/issues/101076
const _: () = {
#[macro_export]

View file

@ -1,5 +1,5 @@
error[E0121]: the placeholder `_` is not allowed within types on item signatures for type aliases
--> $DIR/issue-106226.rs:2:11
--> $DIR/ice-placeholder-type-alias-106226.rs:2:11
|
LL | type F = [_; ()];
| ^ not allowed in type signatures

View file

@ -0,0 +1,3 @@
// https://github.com/rust-lang/rust/issues/105334
impl Vec< br##"*.."## > {}
//~^ ERROR

View file

@ -1,5 +1,5 @@
error[E0747]: constant provided when a type was expected
--> $DIR/issue-105334.rs:1:11
--> $DIR/ice-raw-str-105334.rs:2:11
|
LL | impl Vec< br##"*.."## > {}
| ^^^^^^^^^^^

View file

@ -1,3 +1,4 @@
// https://github.com/rust-lang/rust/issues/102986
struct Struct {
y: (typeof("hey"),),
//~^ `typeof` is a reserved keyword but unimplemented

View file

@ -1,5 +1,5 @@
error[E0516]: `typeof` is a reserved keyword but unimplemented
--> $DIR/issue-102986.rs:2:9
--> $DIR/ice-typeof-102986.rs:3:9
|
LL | y: (typeof("hey"),),
| ^^^^^^^^^^^^^ reserved keyword

View file

@ -1,4 +1,5 @@
//@ check-pass
// https://github.com/rust-lang/rust/issues/103997
pub fn foo() {}

View file

@ -1,5 +1,5 @@
warning: unresolved link to `Self::foo`
--> $DIR/issue-103997.rs:5:13
--> $DIR/ice-unresolved-self-103997.rs:6:13
|
LL | /// [`foo`](Self::foo)
| ^^^^^^^^^ no item named `Self` in scope

View file

@ -1,2 +0,0 @@
impl Vec< br##"*.."## > {}
//~^ ERROR

View file

@ -1,4 +0,0 @@
impl Vec<lol> {}
//~^ ERROR
pub fn lol() {}