2019-06-12 18:18:32 +03:00
|
|
|
//@ check-pass
|
2016-07-16 10:45:13 +02: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 13:08:01 +01:00
|
|
|
fn main() {}
|