Skip to content

Commit e0f14e4

Browse files
committed
Bless existing UI tests
1 parent c86ecbe commit e0f14e4

File tree

42 files changed

+97
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+97
-0
lines changed

tests/rustdoc-ui/not-wf-ambiguous-normalization.stderr

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ error[E0207]: the type parameter `T` is not constrained by the impl trait, self
33
|
44
LL | impl<T> Allocator for DefaultAllocator {
55
| ^ unconstrained type parameter
6+
|
7+
= note: to constrain `T`, use it in the implemented trait, in the self type, or in an equality with an associated type
68

79
error: aborting due to 1 previous error
810

tests/rustdoc-ui/synthetic-auto-trait-impls/unconstrained-param-in-impl-ambiguity.stderr

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ error[E0207]: the type parameter `Q` is not constrained by the impl trait, self
33
|
44
LL | unsafe impl<Q: Trait> Send for Inner {}
55
| ^ unconstrained type parameter
6+
|
7+
= note: to constrain `Q`, use it in the implemented trait, in the self type, or in an equality with an associated type
68

79
error: aborting due to 1 previous error
810

tests/ui/associated-types/issue-26262.stderr

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,16 @@ error[E0207]: the type parameter `T` is not constrained by the impl trait, self
33
|
44
LL | impl<T: Tr> S<T::Assoc> {
55
| ^ unconstrained type parameter
6+
|
7+
= note: to constrain `T`, use it in the self type, or in an equality with an associated type
68

79
error[E0207]: the lifetime parameter `'a` is not constrained by the impl trait, self type, or predicates
810
--> $DIR/issue-26262.rs:17:6
911
|
1012
LL | impl<'a,T: Trait2<'a>> Trait1<<T as Trait2<'a>>::Foo> for T {
1113
| ^^ unconstrained lifetime parameter
14+
|
15+
= note: to constrain `'a`, use it in the implemented trait, in the self type, or in an equality with an associated type
1216

1317
error: aborting due to 2 previous errors
1418

tests/ui/async-await/in-trait/unconstrained-impl-region.stderr

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ error[E0207]: the lifetime parameter `'a` is not constrained by the impl trait,
1919
|
2020
LL | impl<'a> Actor for () {
2121
| ^^ unconstrained lifetime parameter
22+
|
23+
= note: to constrain `'a`, use it in the implemented trait, in the self type, or in an equality with an associated type
2224

2325
error: aborting due to 2 previous errors
2426

tests/ui/async-await/issues/issue-78654.full.stderr

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ error[E0207]: the const parameter `H` is not constrained by the impl trait, self
1010
LL | impl<const H: feature> Foo {
1111
| ^^^^^^^^^^^^^^^^ unconstrained const parameter
1212
|
13+
= note: to constrain `H`, use it in the self type, or in an equality with an associated type
1314
= note: expressions using a const parameter must map each value to a distinct output value
1415
= note: proving the result of expressions other than the parameter are unique is not supported
1516

tests/ui/async-await/issues/issue-78654.min.stderr

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ error[E0207]: the const parameter `H` is not constrained by the impl trait, self
1010
LL | impl<const H: feature> Foo {
1111
| ^^^^^^^^^^^^^^^^ unconstrained const parameter
1212
|
13+
= note: to constrain `H`, use it in the self type, or in an equality with an associated type
1314
= note: expressions using a const parameter must map each value to a distinct output value
1415
= note: proving the result of expressions other than the parameter are unique is not supported
1516

tests/ui/const-generics/ice-unexpected-inference-var-122549.stderr

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ error[E0207]: the const parameter `N` is not constrained by the impl trait, self
5252
LL | impl<'a, T, const N: usize> Iterator for ConstChunksExact<'a, T, {}> {
5353
| ^^^^^^^^^^^^^^ unconstrained const parameter
5454
|
55+
= note: to constrain `N`, use it in the implemented trait, in the self type, or in an equality with an associated type
5556
= note: expressions using a const parameter must map each value to a distinct output value
5657
= note: proving the result of expressions other than the parameter are unique is not supported
5758

tests/ui/const-generics/issues/issue-68366.full.stderr

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ error[E0207]: the const parameter `N` is not constrained by the impl trait, self
1616
LL | impl <const N: usize> Collatz<{Some(N)}> {}
1717
| ^^^^^^^^^^^^^^ unconstrained const parameter
1818
|
19+
= note: to constrain `N`, use it in the self type, or in an equality with an associated type
1920
= note: expressions using a const parameter must map each value to a distinct output value
2021
= note: proving the result of expressions other than the parameter are unique is not supported
2122

@@ -25,6 +26,7 @@ error[E0207]: the const parameter `N` is not constrained by the impl trait, self
2526
LL | impl<const N: usize> Foo {}
2627
| ^^^^^^^^^^^^^^ unconstrained const parameter
2728
|
29+
= note: to constrain `N`, use it in the self type, or in an equality with an associated type
2830
= note: expressions using a const parameter must map each value to a distinct output value
2931
= note: proving the result of expressions other than the parameter are unique is not supported
3032

tests/ui/const-generics/issues/issue-68366.min.stderr

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ error[E0207]: the const parameter `N` is not constrained by the impl trait, self
2525
LL | impl <const N: usize> Collatz<{Some(N)}> {}
2626
| ^^^^^^^^^^^^^^ unconstrained const parameter
2727
|
28+
= note: to constrain `N`, use it in the self type, or in an equality with an associated type
2829
= note: expressions using a const parameter must map each value to a distinct output value
2930
= note: proving the result of expressions other than the parameter are unique is not supported
3031

@@ -34,6 +35,7 @@ error[E0207]: the const parameter `N` is not constrained by the impl trait, self
3435
LL | impl<const N: usize> Foo {}
3536
| ^^^^^^^^^^^^^^ unconstrained const parameter
3637
|
38+
= note: to constrain `N`, use it in the self type, or in an equality with an associated type
3739
= note: expressions using a const parameter must map each value to a distinct output value
3840
= note: proving the result of expressions other than the parameter are unique is not supported
3941

tests/ui/consts/rustc-impl-const-stability.stderr

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ error[E0207]: the const parameter `host` is not constrained by the impl trait, s
1313
LL | impl const Default for Data {
1414
| ^^^^^ unconstrained const parameter
1515
|
16+
= note: to constrain `host`, use it in the implemented trait, in the self type, or in an equality with an associated type
1617
= note: expressions using a const parameter must map each value to a distinct output value
1718
= note: proving the result of expressions other than the parameter are unique is not supported
1819

0 commit comments

Comments
 (0)