Reviews
This commit is contained in:
parent
4316259729
commit
cc10370fc8
4 changed files with 32 additions and 25 deletions
|
|
@ -5,7 +5,7 @@
|
|||
// checked before integer fallback occurs. We accomplish this by having the repeat
|
||||
// expr check allow inference progress on an ambiguous goal, where the ambiguous goal
|
||||
// would fail if the inference variable was fallen back to `i32`. This test will
|
||||
// pass if wecheck repeat exprs before integer fallback.
|
||||
// pass if we check repeat exprs before integer fallback.
|
||||
|
||||
use std::marker::PhantomData;
|
||||
struct Foo<T>(PhantomData<T>);
|
||||
|
|
|
|||
|
|
@ -12,7 +12,7 @@ impl Copy for Foo<1> {}
|
|||
fn unify<const N: usize>(_: &[Foo<N>; 2], _: &[String; N]) {}
|
||||
|
||||
fn works_if_inference_side_effects() {
|
||||
// This will only pass if inference side effectrs from proving `Foo<?x>: Copy` are
|
||||
// This will only pass if inference side effects from proving `Foo<?x>: Copy` are
|
||||
// able to be relied upon by other repeat expressions.
|
||||
let a /* : [Foo<?x>; 2] */ = [Foo::<_>; 2];
|
||||
//~^ ERROR: type annotations needed for `[Foo<_>; 2]`
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue