8000 Update 2018-12-14-Rust-2018-dev-tools.md · davidalber/blog.rust-lang.org@a0a8ef3 · GitHub
[go: up one dir, main page]

Skip to content

Commit a0a8ef3

Browse files
committed
Update 2018-12-14-Rust-2018-dev-tools.md
1 parent d278be1 commit a0a8ef3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

posts/2018-12-14-Rust-2018-dev-tools.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,15 +16,15 @@ A simple example:
1616

1717
```rust
1818
trait Foo {
19-
fn foo(&self, &Foo);
19+
fn foo(&self, i32);
2020
}
2121
```
2222

2323
The above is legal in Rust 2015, but not in Rust 2018 (method arguments must be made explicit). Rustfix changes the above code to:
2424

2525
```rust
2626
trait Foo {
27-
fn foo(&self, _: &Foo);
27+
fn foo(&self, _: i32);
2828
}
2929
```
3030

0 commit comments

Comments
 (0)
0