Skip to content

Commit

Permalink
Fix windows test that has different stderr output
Browse files Browse the repository at this point in the history
  • Loading branch information
estebank committed Oct 6, 2023
1 parent 8d92c99 commit 4483ac2
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 8 deletions.
1 change: 1 addition & 0 deletions tests/ui/inference/issue-71584.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// ignore-windows different list of satisfying impls
fn main() {
let n: u32 = 1;
let mut d: u64 = 2;
Expand Down
2 changes: 1 addition & 1 deletion tests/ui/inference/issue-71584.stderr
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
error[E0284]: type annotations needed
--> $DIR/issue-71584.rs:4:15
--> $DIR/issue-71584.rs:5:15
|
LL | d = d % n.into();
| - ^^^^
Expand Down
1 change: 1 addition & 0 deletions tests/ui/traits/issue-77982.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// ignore-windows different list of satisfying impls
use std::collections::HashMap;

fn what() {
Expand Down
14 changes: 7 additions & 7 deletions tests/ui/traits/issue-77982.stderr
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
error[E0283]: type annotations needed
--> $DIR/issue-77982.rs:8:10
--> $DIR/issue-77982.rs:9:10
|
LL | opts.get(opt.as_ref());
| ^^^ ------------ type must be known at this point
Expand All @@ -18,7 +18,7 @@ LL | opts.get::<Q>(opt.as_ref());
| +++++

error[E0283]: type annotations needed
--> $DIR/issue-77982.rs:8:10
--> $DIR/issue-77982.rs:9:10
|
LL | opts.get(opt.as_ref());
| ^^^ ------ type must be known at this point
Expand All @@ -36,7 +36,7 @@ LL | opts.get::<Q>(opt.as_ref());
| +++++

error[E0283]: type annotations needed
--> $DIR/issue-77982.rs:13:59
--> $DIR/issue-77982.rs:14:59
|
LL | let ips: Vec<_> = (0..100_000).map(|_| u32::from(0u32.into())).collect();
| --- ^^^^
Expand All @@ -56,13 +56,13 @@ LL | let ips: Vec<_> = (0..100_000).map(|_| u32::from(<u32 as Into<T>>::into
| +++++++++++++++++++++++ ~

error[E0283]: type annotations needed for `Box<T>`
--> $DIR/issue-77982.rs:36:9
--> $DIR/issue-77982.rs:37:9
|
LL | let _ = ().foo();
| ^ --- type must be known at this point
|
note: multiple `impl`s satisfying `(): Foo<'_, _>` found
--> $DIR/issue-77982.rs:29:1
--> $DIR/issue-77982.rs:30:1
|
LL | impl Foo<'static, u32> for () {}
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Expand All @@ -74,13 +74,13 @@ LL | let _: Box<T> = ().foo();
| ++++++++

error[E0283]: type annotations needed for `Box<T>`
--> $DIR/issue-77982.rs:40:9
--> $DIR/issue-77982.rs:41:9
|
LL | let _ = (&()).bar();
| ^ --- type must be known at this point
|
note: multiple `impl`s satisfying `&(): Bar<'_, _>` found
--> $DIR/issue-77982.rs:32:1
--> $DIR/issue-77982.rs:33:1
|
LL | impl<'a> Bar<'static, u32> for &'a () {}
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Expand Down

0 comments on commit 4483ac2

Please sign in to comment.