Added support for trait aliases as object types.
This commit is contained in:
parent
34792d9f6a
commit
90041d638b
7 changed files with 43 additions and 34 deletions
|
@ -288,9 +288,9 @@ pub enum TraitBoundModifier {
|
|||
}
|
||||
|
||||
/// The AST represents all type param bounds as types.
|
||||
/// typeck::collect::compute_bounds matches these against
|
||||
/// the "special" built-in traits (see middle::lang_items) and
|
||||
/// detects Copy, Send and Sync.
|
||||
/// `typeck::collect::compute_bounds` matches these against
|
||||
/// the "special" built-in traits (see `middle::lang_items`) and
|
||||
/// detects `Copy`, `Send` and `Sync`.
|
||||
#[derive(Clone, RustcEncodable, RustcDecodable, Debug)]
|
||||
pub enum GenericBound {
|
||||
Trait(PolyTraitRef, TraitBoundModifier),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue