Skip to content

Commit f31c93c

Browse files
committed
generated stderr files
1 parent cacabef commit f31c93c

File tree

3 files changed

+12
-11
lines changed

3 files changed

+12
-11
lines changed

tests/ui/autoderef-full-lval.stderr renamed to tests/ui/autoref-autoderef/autoderef-box-no-add.stderr

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
error[E0369]: cannot add `Box<isize>` to `Box<isize>`
2-
--> $DIR/autoderef-full-lval.rs:15:24
2+
--> $DIR/autoderef-box-no-add.rs:22:24
33
|
44
LL | let z: isize = a.x + b.y;
55
| --- ^ --- Box<isize>
@@ -13,7 +13,7 @@ note: the foreign item type `Box<isize>` doesn't implement `Add`
1313
= note: not implement `Add`
1414

1515
error[E0369]: cannot add `Box<isize>` to `Box<isize>`
16-
--> $DIR/autoderef-full-lval.rs:21:33
16+
--> $DIR/autoderef-box-no-add.rs:28:33
1717
|
1818
LL | let answer: isize = forty.a + two.a;
1919
| ------- ^ ----- Box<isize>

tests/ui/methods/no-auto-borrow-vec-to-slice.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
//! Tests that method resolution does not automatically borrow `Vec` to a slice or add extra references.
1+
//! Tests that method resolution does not automatically borrow `Vec`
2+
//! to a slice or add extra references.
23
34
fn main() {
45
let mut a = vec![0];

tests/ui/auto-ref-slice-plus-ref.stderr renamed to tests/ui/methods/no-auto-borrow-vec-to-slice.stderr

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,53 +1,53 @@
11
error[E0599]: no method named `test_mut` found for struct `Vec<{integer}>` in the current scope
2-
--> $DIR/auto-ref-slice-plus-ref.rs:7:7
2+
--> $DIR/no-auto-borrow-vec-to-slice.rs:6:7
33
|
44
LL | a.test_mut();
55
| ^^^^^^^^
66
|
77
= help: items from traits can only be used if the trait is implemented and in scope
88
note: `MyIter` defines an item `test_mut`, perhaps you need to implement it
9-
--> $DIR/auto-ref-slice-plus-ref.rs:14:1
9+
--> $DIR/no-auto-borrow-vec-to-slice.rs:13:1
1010
|
1111
LL | trait MyIter {
1212
| ^^^^^^^^^^^^
1313
help: there is a method `get_mut` with a similar name, but with different arguments
1414
--> $SRC_DIR/core/src/slice/mod.rs:LL:COL
1515

1616
error[E0599]: no method named `test` found for struct `Vec<{integer}>` in the current scope
17-
--> $DIR/auto-ref-slice-plus-ref.rs:8:7
17+
--> $DIR/no-auto-borrow-vec-to-slice.rs:7:7
1818
|
1919
LL | a.test();
2020
| ^^^^ method not found in `Vec<{integer}>`
2121
|
2222
= help: items from traits can only be used if the trait is implemented and in scope
2323
note: `MyIter` defines an item `test`, perhaps you need to implement it
24-
--> $DIR/auto-ref-slice-plus-ref.rs:14:1
24+
--> $DIR/no-auto-borrow-vec-to-slice.rs:13:1
2525
|
2626
LL | trait MyIter {
2727
| ^^^^^^^^^^^^
2828

2929
error[E0599]: no method named `test` found for array `[{integer}; 1]` in the current scope
30-
--> $DIR/auto-ref-slice-plus-ref.rs:10:11
30+
--> $DIR/no-auto-borrow-vec-to-slice.rs:9:11
3131
|
3232
LL | ([1]).test();
3333
| ^^^^ method not found in `[{integer}; 1]`
3434
|
3535
= help: items from traits can only be used if the trait is implemented and in scope
3636
note: `MyIter` defines an item `test`, perhaps you need to implement it
37-
--> $DIR/auto-ref-slice-plus-ref.rs:14:1
37+
--> $DIR/no-auto-borrow-vec-to-slice.rs:13:1
3838
|
3939
LL | trait MyIter {
4040
| ^^^^^^^^^^^^
4141

4242
error[E0599]: no method named `test` found for reference `&[{integer}; 1]` in the current scope
43-
--> $DIR/auto-ref-slice-plus-ref.rs:11:12
43+
--> $DIR/no-auto-borrow-vec-to-slice.rs:10:12
4444
|
4545
LL | (&[1]).test();
4646
| ^^^^ method not found in `&[{integer}; 1]`
4747
|
4848
= help: items from traits can only be used if the trait is implemented and in scope
4949
note: `MyIter` defines an item `test`, perhaps you need to implement it
50-
--> $DIR/auto-ref-slice-plus-ref.rs:14:1
50+
--> $DIR/no-auto-borrow-vec-to-slice.rs:13:1
5151
|
5252
LL | trait MyIter {
5353
| ^^^^^^^^^^^^

0 commit comments

Comments
 (0)