Stabilize associated type bounds
This commit is contained in:
parent
a655e648a9
commit
c63f3feb0f
95 changed files with 147 additions and 533 deletions
|
@ -3,8 +3,6 @@ An associated type value was specified more than once.
|
|||
Erroneous code example:
|
||||
|
||||
```compile_fail,E0719
|
||||
#![feature(associated_type_bounds)]
|
||||
|
||||
trait FooTrait {}
|
||||
trait BarTrait {}
|
||||
|
||||
|
@ -19,8 +17,6 @@ specify the associated type with the new trait.
|
|||
Corrected example:
|
||||
|
||||
```
|
||||
#![feature(associated_type_bounds)]
|
||||
|
||||
trait FooTrait {}
|
||||
trait BarTrait {}
|
||||
trait FooBarTrait: FooTrait + BarTrait {}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue