#![crate_name = "inner_types_lazy"] #![feature(lazy_type_alias)] #![allow(incomplete_features)] // @has 'inner_types_lazy/struct.Pair.html' pub struct Pair { pub first: A, pub second: B, } // @has 'inner_types_lazy/type.ReversedTypesPair.html' // @count - '//*[@id="aliased-type"]' 1 // @count - '//*[@id="variants"]' 0 // @count - '//*[@id="fields"]' 1 // @count - '//span[@class="where fmt-newline"]' 0 pub type ReversedTypesPair = Pair; // @has 'inner_types_lazy/type.ReadWrite.html' // @count - '//*[@id="aliased-type"]' 1 // @count - '//*[@id="variants"]' 0 // @count - '//*[@id="fields"]' 1 // @count - '//span[@class="where fmt-newline"]' 2 pub type ReadWrite = Pair where R: std::io::Read, W: std::io::Write; // @has 'inner_types_lazy/type.VecPair.html' // @count - '//*[@id="aliased-type"]' 1 // @count - '//*[@id="variants"]' 0 // @count - '//*[@id="fields"]' 1 // @count - '//span[@class="where fmt-newline"]' 0 pub type VecPair = Pair, Vec>;