File tree 1 file changed +5
-5
lines changed 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ but the implementation of `foo` for the type `Bar` is missing this parameter:
28
28
29
29
```
30
30
trait Foo {
31
- fn foo<T: Default>(T) -> Self;
31
+ fn foo<T: Default>(x: T) -> Self;
32
32
}
33
33
34
34
struct Bar;
@@ -51,7 +51,7 @@ the `u8` parameter:
51
51
52
52
```
53
53
trait Foo {
54
- fn foo(&self, u8) -> bool;
54
+ fn foo(&self, x: u8) -> bool;
55
55
}
56
56
57
57
struct Bar;
@@ -336,9 +336,9 @@ return type in its signature. For example:
336
336
fn foo() -> ! { return; } // error
337
337
```
338
338
339
- For a function that diverges, every control path in the function must end
340
- with a call to `panic!()` or another diverging function. Attempting to return
341
- from a diverging function is an error .
339
+ For a function that diverges, every control path in the function must never
340
+ return, for example with a `loop` that never breaks or a call to another
341
+ diverging function (such as `panic!()`) .
342
342
"## ,
343
343
344
344
E0184 : r##"
You can’t perform that action at this time.
0 commit comments