@@ -194,7 +194,7 @@ a guard.
194
194
```compile_fail,E0029
195
195
let string = "salutations !";
196
196
197
- // The ordering relation for strings can't be evaluated at compile time,
197
+ // The ordering relation for strings cannot be evaluated at compile time,
198
198
// so this doesn't work:
199
199
match string {
200
200
"hello" ..= "world" => {}
@@ -348,7 +348,7 @@ fn main() {
348
348
"## ,
349
349
350
350
E0044 : r##"
351
- You can't use type or const parameters on foreign items.
351
+ You cannot use type or const parameters on foreign items.
352
352
Example of erroneous code:
353
353
354
354
```compile_fail,E0044
@@ -788,7 +788,7 @@ fn some_other_func() {}
788
788
fn some_function() {
789
789
SOME_CONST = 14; // error : a constant value cannot be changed!
790
790
1 = 3; // error : 1 isn't a valid place!
791
- some_other_func() = 4; // error : we can't assign value to a function!
791
+ some_other_func() = 4; // error : we cannot assign value to a function!
792
792
SomeStruct.x = 12; // error : SomeStruct a structure name but it is used
793
793
// like a variable!
794
794
}
@@ -3905,8 +3905,8 @@ struct Aligned(i32);
3905
3905
struct Packed(Aligned);
3906
3906
```
3907
3907
3908
- Just like you can't have both `align` and `packed` representation hints on a
3909
- same type, a `packed` type can't contain another type with the `align`
3908
+ Just like you cannot have both `align` and `packed` representation hints on a
3909
+ same type, a `packed` type cannot contain another type with the `align`
3910
3910
representation hint. However, you can do the opposite:
3911
3911
3912
3912
```
@@ -4326,7 +4326,7 @@ extern {
4326
4326
4327
4327
unsafe {
4328
4328
printf(::std::ptr::null(), 0f32);
4329
- // error: can't pass an `f32` to variadic function, cast to `c_double`
4329
+ // error: cannot pass an `f32` to variadic function, cast to `c_double`
4330
4330
}
4331
4331
```
4332
4332
@@ -5023,7 +5023,7 @@ the future, [RFC 2091] prohibits their implementation without a follow-up RFC.
5023
5023
// E0174,
5024
5024
// E0182, // merged into E0229
5025
5025
E0183 ,
5026
- // E0187, // can't infer the kind of the closure
5026
+ // E0187, // cannot infer the kind of the closure
5027
5027
// E0188, // can not cast an immutable reference to a mutable pointer
5028
5028
// E0189, // deprecated: can only cast a boxed pointer to a boxed object
5029
5029
// E0190, // deprecated: can only cast a &-pointer to an &-object
0 commit comments