2019-06-12 10:18:32 -05:00
|
|
|
// check-pass
|
2016-07-16 03:45:13 -05:00
|
|
|
|
|
|
|
trait RegularExpression: Sized {
|
|
|
|
type Text;
|
|
|
|
}
|
|
|
|
|
|
|
|
struct ExecNoSyncStr<'a>(&'a u8);
|
|
|
|
|
|
|
|
impl<'c> RegularExpression for ExecNoSyncStr<'c> {
|
|
|
|
type Text = u8;
|
|
|
|
}
|
|
|
|
|
|
|
|
struct FindCaptures<'t, R>(&'t R::Text) where R: RegularExpression, R::Text: 't;
|
|
|
|
|
|
|
|
enum FindCapturesInner<'r, 't> {
|
|
|
|
Dynamic(FindCaptures<'t, ExecNoSyncStr<'r>>),
|
|
|
|
}
|
|
|
|
|
2018-10-31 07:08:01 -05:00
|
|
|
fn main() {}
|