about summary refs log tree commit diff
path: root/tests/ui/repeat-expr
diff options
context:
space:
mode:
authorBoxy <rust@boxyuwu.dev>2025-04-14 13:41:18 +0100
committerBoxy <rust@boxyuwu.dev>2025-05-22 11:39:49 +0100
commitcc10370fc8b2b412600aa846e3046b8a09dda7ca (patch)
tree143426ba52b215b8b9693e20bafb7140d509203d /tests/ui/repeat-expr
parent43162597292f904ff5ff47e251ba40fb9ae41ded (diff)
downloadrust-cc10370fc8b2b412600aa846e3046b8a09dda7ca.tar.gz
rust-cc10370fc8b2b412600aa846e3046b8a09dda7ca.zip
Reviews
Diffstat (limited to 'tests/ui/repeat-expr')
-rw-r--r--tests/ui/repeat-expr/copy-check-deferred-before-fallback.rs2
-rw-r--r--tests/ui/repeat-expr/copy-check-inference-side-effects.rs2
2 files changed, 2 insertions, 2 deletions
diff --git a/tests/ui/repeat-expr/copy-check-deferred-before-fallback.rs b/tests/ui/repeat-expr/copy-check-deferred-before-fallback.rs
index b81997a3c9f..4fbb8f0a00c 100644
--- a/tests/ui/repeat-expr/copy-check-deferred-before-fallback.rs
+++ b/tests/ui/repeat-expr/copy-check-deferred-before-fallback.rs
@@ -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>);
diff --git a/tests/ui/repeat-expr/copy-check-inference-side-effects.rs b/tests/ui/repeat-expr/copy-check-inference-side-effects.rs
index 416a20169fb..4e3bfdead26 100644
--- a/tests/ui/repeat-expr/copy-check-inference-side-effects.rs
+++ b/tests/ui/repeat-expr/copy-check-inference-side-effects.rs
@@ -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]`