Skip to content

Commit 5de482c

Browse files
committed
Update references
1 parent 19d2ee6 commit 5de482c

File tree

754 files changed

+2136
-2141
lines changed

Some content is hidden

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

754 files changed

+2136
-2141
lines changed

src/test/ui/anonymous-higher-ranked-lifetime.stderr

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
error[E0631]: type mismatch in closure arguments
2-
--> $DIR/anonymous-higher-ranked-lifetime.rs:12:5
2+
--> $DIR/anonymous-higher-ranked-lifetime.rs:12:5: in fn main
33
|
44
LL | f1(|_: (), _: ()| {}); //~ ERROR type mismatch
55
| ^^ -------------- found signature of `fn((), ()) -> _`
@@ -13,7 +13,7 @@ LL | fn f1<F>(_: F) where F: Fn(&(), &()) {}
1313
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
1414

1515
error[E0631]: type mismatch in closure arguments
16-
--> $DIR/anonymous-higher-ranked-lifetime.rs:13:5
16+
--> $DIR/anonymous-higher-ranked-lifetime.rs:13:5: in fn main
1717
|
1818
LL | f2(|_: (), _: ()| {}); //~ ERROR type mismatch
1919
| ^^ -------------- found signature of `fn((), ()) -> _`
@@ -27,7 +27,7 @@ LL | fn f2<F>(_: F) where F: for<'a> Fn(&'a (), &()) {}
2727
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2828

2929
error[E0631]: type mismatch in closure arguments
30-
--> $DIR/anonymous-higher-ranked-lifetime.rs:14:5
30+
--> $DIR/anonymous-higher-ranked-lifetime.rs:14:5: in fn main
3131
|
3232
LL | f3(|_: (), _: ()| {}); //~ ERROR type mismatch
3333
| ^^ -------------- found signature of `fn((), ()) -> _`
@@ -41,7 +41,7 @@ LL | fn f3<'a, F>(_: F) where F: Fn(&'a (), &()) {}
4141
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
4242

4343
error[E0631]: type mismatch in closure arguments
44-
--> $DIR/anonymous-higher-ranked-lifetime.rs:15:5
44+
--> $DIR/anonymous-higher-ranked-lifetime.rs:15:5: in fn main
4545
|
4646
LL | f4(|_: (), _: ()| {}); //~ ERROR type mismatch
4747
| ^^ -------------- found signature of `fn((), ()) -> _`
@@ -55,7 +55,7 @@ LL | fn f4<F>(_: F) where F: for<'r> Fn(&(), &'r ()) {}
5555
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
5656

5757
error[E0631]: type mismatch in closure arguments
58-
--> $DIR/anonymous-higher-ranked-lifetime.rs:16:5
58+
--> $DIR/anonymous-higher-ranked-lifetime.rs:16:5: in fn main
5959
|
6060
LL | f5(|_: (), _: ()| {}); //~ ERROR type mismatch
6161
| ^^ -------------- found signature of `fn((), ()) -> _`
@@ -69,7 +69,7 @@ LL | fn f5<F>(_: F) where F: for<'r> Fn(&'r (), &'r ()) {}
6969
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
7070

7171
error[E0631]: type mismatch in closure arguments
72-
--> $DIR/anonymous-higher-ranked-lifetime.rs:17:5
72+
--> $DIR/anonymous-higher-ranked-lifetime.rs:17:5: in fn main
7373
|
7474
LL | g1(|_: (), _: ()| {}); //~ ERROR type mismatch
7575
| ^^ -------------- found signature of `fn((), ()) -> _`
@@ -83,7 +83,7 @@ LL | fn g1<F>(_: F) where F: Fn(&(), Box<Fn(&())>) {}
8383
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
8484

8585
error[E0631]: type mismatch in closure arguments
86-
--> $DIR/anonymous-higher-ranked-lifetime.rs:18:5
86+
--> $DIR/anonymous-higher-ranked-lifetime.rs:18:5: in fn main
8787
|
8888
LL | g2(|_: (), _: ()| {}); //~ ERROR type mismatch
8989
| ^^ -------------- found signature of `fn((), ()) -> _`
@@ -97,7 +97,7 @@ LL | fn g2<F>(_: F) where F: Fn(&(), fn(&())) {}
9797
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
9898

9999
error[E0631]: type mismatch in closure arguments
100-
--> $DIR/anonymous-higher-ranked-lifetime.rs:19:5
100+
--> $DIR/anonymous-higher-ranked-lifetime.rs:19:5: in fn main
101101
|
102102
LL | g3(|_: (), _: ()| {}); //~ ERROR type mismatch
103103
| ^^ -------------- found signature of `fn((), ()) -> _`
@@ -111,7 +111,7 @@ LL | fn g3<F>(_: F) where F: for<'s> Fn(&'s (), Box<Fn(&())>) {}
111111
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
112112

113113
error[E0631]: type mismatch in closure arguments
114-
--> $DIR/anonymous-higher-ranked-lifetime.rs:20:5
114+
--> $DIR/anonymous-higher-ranked-lifetime.rs:20:5: in fn main
115115
|
116116
LL | g4(|_: (), _: ()| {}); //~ ERROR type mismatch
117117
| ^^ -------------- found signature of `fn((), ()) -> _`
@@ -125,7 +125,7 @@ LL | fn g4<F>(_: F) where F: Fn(&(), for<'r> fn(&'r ())) {}
125125
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
126126

127127
error[E0631]: type mismatch in closure arguments
128-
--> $DIR/anonymous-higher-ranked-lifetime.rs:21:5
128+
--> $DIR/anonymous-higher-ranked-lifetime.rs:21:5: in fn main
129129
|
130130
LL | h1(|_: (), _: (), _: (), _: ()| {}); //~ ERROR type mismatch
131131
| ^^ ---------------------------- found signature of `fn((), (), (), ()) -> _`
@@ -139,7 +139,7 @@ LL | fn h1<F>(_: F) where F: Fn(&(), Box<Fn(&())>, &(), fn(&(), &())) {}
139139
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
140140

141141
error[E0631]: type mismatch in closure arguments
142-
--> $DIR/anonymous-higher-ranked-lifetime.rs:22:5
142+
--> $DIR/anonymous-higher-ranked-lifetime.rs:22:5: in fn main
143143
|
144144
LL | h2(|_: (), _: (), _: (), _: ()| {}); //~ ERROR type mismatch
145145
| ^^ ---------------------------- found signature of `fn((), (), (), ()) -> _`

src/test/ui/arbitrary-self-types-not-object-safe.stderr

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
error[E0038]: the trait `Foo` cannot be made into an object
2-
--> $DIR/arbitrary-self-types-not-object-safe.rs:40:33
2+
--> $DIR/arbitrary-self-types-not-object-safe.rs:40:33: in fn make_foo
33
|
44
LL | let x = Box::new(5usize) as Box<Foo>;
55
| ^^^^^^^^ the trait `Foo` cannot be made into an object
66
|
77
= note: method `foo` has a non-standard `self` type
88

99
error[E0038]: the trait `Foo` cannot be made into an object
10-
--> $DIR/arbitrary-self-types-not-object-safe.rs:40:13
10+
--> $DIR/arbitrary-self-types-not-object-safe.rs:40:13: in fn make_foo
1111
|
1212
LL | let x = Box::new(5usize) as Box<Foo>;
1313
| ^^^^^^^^^^^^^^^^ the trait `Foo` cannot be made into an object

src/test/ui/asm-out-assign-imm.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
error[E0384]: cannot assign twice to immutable variable `x`
2-
--> $DIR/asm-out-assign-imm.rs:30:9
2+
--> $DIR/asm-out-assign-imm.rs:30:9: in fn main
33
|
44
LL | x = 1;
55
| ----- first assignment to `x`

src/test/ui/associated-const-impl-wrong-type.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
error[E0326]: implemented const `BAR` has an incompatible type for trait
2-
--> $DIR/associated-const-impl-wrong-type.rs:19:16
2+
--> $DIR/associated-const-impl-wrong-type.rs:19:16: in impl BAR
33
|
44
LL | const BAR: u32;
55
| --- type in trait

src/test/ui/associated-type-projection-from-multiple-supertraits.stderr

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
error[E0221]: ambiguous associated type `Color` in bounds of `C`
2-
--> $DIR/associated-type-projection-from-multiple-supertraits.rs:29:32
2+
--> $DIR/associated-type-projection-from-multiple-supertraits.rs:29:32: in fn dent
33
|
44
LL | type Color;
55
| ----------- ambiguous `Color` from `Vehicle`
@@ -11,7 +11,7 @@ LL | fn dent<C:BoxCar>(c: C, color: C::Color) {
1111
| ^^^^^^^^ ambiguous associated type `Color`
1212

1313
error[E0221]: ambiguous associated type `Color` in bounds of `BoxCar`
14-
--> $DIR/associated-type-projection-from-multiple-supertraits.rs:33:33
14+
--> $DIR/associated-type-projection-from-multiple-supertraits.rs:33:33: in fn dent_object
1515
|
1616
LL | type Color;
1717
| ----------- ambiguous `Color` from `Vehicle`
@@ -23,13 +23,13 @@ LL | fn dent_object<COLOR>(c: BoxCar<Color=COLOR>) {
2323
| ^^^^^^^^^^^ ambiguous associated type `Color`
2424

2525
error[E0191]: the value of the associated type `Color` (from the trait `Vehicle`) must be specified
26-
--> $DIR/associated-type-projection-from-multiple-supertraits.rs:33:26
26+
--> $DIR/associated-type-projection-from-multiple-supertraits.rs:33:26: in fn dent_object
2727
|
2828
LL | fn dent_object<COLOR>(c: BoxCar<Color=COLOR>) {
2929
| ^^^^^^^^^^^^^^^^^^^ missing associated type `Color` value
3030

3131
error[E0221]: ambiguous associated type `Color` in bounds of `C`
32-
--> $DIR/associated-type-projection-from-multiple-supertraits.rs:38:29
32+
--> $DIR/associated-type-projection-from-multiple-supertraits.rs:38:29: in fn paint
3333
|
3434
LL | type Color;
3535
| ----------- ambiguous `Color` from `Vehicle`

src/test/ui/associated-types-ICE-when-projecting-out-of-err.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
error[E0277]: the trait bound `(): Add<A>` is not satisfied
2-
--> $DIR/associated-types-ICE-when-projecting-out-of-err.rs:33:11
2+
--> $DIR/associated-types-ICE-when-projecting-out-of-err.rs:33:11: in fn ice
33
|
44
LL | r = r + a;
55
| ^ the trait `Add<A>` is not implemented for `()`

src/test/ui/associated-types-in-ambiguous-context.stderr

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
error[E0223]: ambiguous associated type
2-
--> $DIR/associated-types-in-ambiguous-context.rs:16:36
2+
--> $DIR/associated-types-in-ambiguous-context.rs:16:36: in fn get
33
|
44
LL | fn get<T:Get,U:Get>(x: T, y: U) -> Get::Value {}
55
| ^^^^^^^^^^ ambiguous associated type
@@ -15,7 +15,7 @@ LL | type X = std::ops::Deref::Target;
1515
= note: specify the type using the syntax `<Type as std::ops::Deref>::Target`
1616

1717
error[E0223]: ambiguous associated type
18-
--> $DIR/associated-types-in-ambiguous-context.rs:21:23
18+
--> $DIR/associated-types-in-ambiguous-context.rs:21:23: in trait Grab::grab
1919
|
2020
LL | fn grab(&self) -> Grab::Value;
2121
| ^^^^^^^^^^^ ambiguous associated type

src/test/ui/augmented-assignments.stderr

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
error[E0596]: cannot borrow immutable local variable `y` as mutable
2-
--> $DIR/augmented-assignments.rs:30:5
2+
--> $DIR/augmented-assignments.rs:30:5: in fn main
33
|
44
LL | let y = Int(2);
55
| - consider changing this to `mut y`
@@ -8,7 +8,7 @@ LL | y //~ error: cannot borrow immutable local variable `y` as mutable
88
| ^ cannot borrow mutably
99

1010
error[E0382]: use of moved value: `x`
11-
--> $DIR/augmented-assignments.rs:23:5
11+
--> $DIR/augmented-assignments.rs:23:5: in fn main
1212
|
1313
LL | x //~ error: use of moved value: `x`
1414
| ^ value used here after move

src/test/ui/binary-op-on-double-ref.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
error[E0369]: binary operation `%` cannot be applied to type `&&{integer}`
2-
--> $DIR/binary-op-on-double-ref.rs:14:9
2+
--> $DIR/binary-op-on-double-ref.rs:14:9: in fn main
33
|
44
LL | x % 2 == 0
55
| ^^^^^

src/test/ui/block-result/block-must-not-have-result-do.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
error[E0308]: mismatched types
2-
--> $DIR/block-must-not-have-result-do.rs:13:9
2+
--> $DIR/block-must-not-have-result-do.rs:13:9: in fn main
33
|
44
LL | true //~ ERROR mismatched types
55
| ^^^^ expected (), found bool

src/test/ui/block-result/block-must-not-have-result-res.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
error[E0308]: mismatched types
2-
--> $DIR/block-must-not-have-result-res.rs:15:9
2+
--> $DIR/block-must-not-have-result-res.rs:15:9: in fn drop::drop
33
|
44
LL | fn drop(&mut self) {
55
| - expected `()` because of default return type

src/test/ui/block-result/block-must-not-have-result-while.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
error[E0308]: mismatched types
2-
--> $DIR/block-must-not-have-result-while.rs:13:9
2+
--> $DIR/block-must-not-have-result-while.rs:13:9: in fn main
33
|
44
LL | true //~ ERROR mismatched types
55
| ^^^^ expected (), found bool

src/test/ui/block-result/issue-13624.stderr

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
error[E0308]: mismatched types
2-
--> $DIR/issue-13624.rs:17:5
2+
--> $DIR/issue-13624.rs:17:5: in fn a::get_enum_struct_variant
33
|
44
LL | pub fn get_enum_struct_variant() -> () {
55
| -- expected `()` because of return type
@@ -10,7 +10,7 @@ LL | Enum::EnumStructVariant { x: 1, y: 2, z: 3 }
1010
found type `a::Enum`
1111

1212
error[E0308]: mismatched types
13-
--> $DIR/issue-13624.rs:32:9
13+
--> $DIR/issue-13624.rs:32:9: in fn b::test::test_enum_struct_variant
1414
|
1515
LL | a::Enum::EnumStructVariant { x, y, z } => {
1616
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected (), found enum `a::Enum`

src/test/ui/block-result/issue-20862.stderr

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
error[E0308]: mismatched types
2-
--> $DIR/issue-20862.rs:12:5
2+
--> $DIR/issue-20862.rs:12:5: in fn foo
33
|
44
LL | fn foo(x: i32) {
55
| - possibly return type missing here?
@@ -10,7 +10,7 @@ LL | |y| x + y
1010
found type `[closure@$DIR/issue-20862.rs:12:5: 12:14 x:_]`
1111

1212
error[E0618]: expected function, found `()`
13-
--> $DIR/issue-20862.rs:17:13
13+
--> $DIR/issue-20862.rs:17:13: in fn main
1414
|
1515
LL | let x = foo(5)(2);
1616
| ^^^^^^^^^ not a function

src/test/ui/block-result/issue-22645.stderr

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
error[E0277]: the trait bound `{integer}: Scalar` is not satisfied
2-
--> $DIR/issue-22645.rs:25:5
2+
--> $DIR/issue-22645.rs:25:5: in fn main
33
|
44
LL | b + 3 //~ ERROR E0277
55
| ^ the trait `Scalar` is not implemented for `{integer}`
@@ -9,7 +9,7 @@ LL | b + 3 //~ ERROR E0277
99
= note: required because of the requirements on the impl of `std::ops::Add<{integer}>` for `Bob`
1010

1111
error[E0308]: mismatched types
12-
--> $DIR/issue-22645.rs:25:3
12+
--> $DIR/issue-22645.rs:25:3: in fn main
1313
|
1414
LL | fn main() {
1515
| - expected `()` because of default return type

src/test/ui/block-result/issue-3563.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
error[E0599]: no method named `b` found for type `&Self` in the current scope
2-
--> $DIR/issue-3563.rs:13:17
2+
--> $DIR/issue-3563.rs:13:17: in fn A::a::a
33
|
44
LL | || self.b()
55
| ^

src/test/ui/block-result/issue-5500.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
error[E0308]: mismatched types
2-
--> $DIR/issue-5500.rs:12:5
2+
--> $DIR/issue-5500.rs:12:5: in fn main
33
|
44
LL | fn main() {
55
| - expected `()` because of default return type

src/test/ui/block-result/unexpected-return-on-unit.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
error[E0308]: mismatched types
2-
--> $DIR/unexpected-return-on-unit.rs:19:5
2+
--> $DIR/unexpected-return-on-unit.rs:19:5: in fn bar
33
|
44
LL | foo() //~ ERROR mismatched types
55
| ^^^^^ expected (), found usize

src/test/ui/bogus-tag.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
error[E0599]: no variant named `hsl` found for type `color` in the current scope
2-
--> $DIR/bogus-tag.rs:18:7
2+
--> $DIR/bogus-tag.rs:18:7: in fn main
33
|
44
LL | enum color { rgb(isize, isize, isize), rgba(isize, isize, isize, isize), }
55
| ---------- variant `hsl` not found here

0 commit comments

Comments
 (0)