Skip to content

Commit 94b07a9

Browse files
committed
update unstable book and error example
1 parent 97de8ca commit 94b07a9

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

src/doc/unstable-book/src/language-features/optin-builtin-traits.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,7 @@ Example:
2424
```rust
2525
#![feature(optin_builtin_traits)]
2626

27-
trait Valid {}
28-
29-
impl Valid for .. {}
27+
auto trait Valid {}
3028

3129
struct True;
3230
struct False;

src/librustc_typeck/diagnostics.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1854,7 +1854,7 @@ unsafe impl !Clone for Foo { }
18541854
18551855
This will compile:
18561856
1857-
```
1857+
```ignore (ignore auto_trait future compatibility warning)
18581858
#![feature(optin_builtin_traits)]
18591859
18601860
struct Foo;

0 commit comments

Comments
 (0)