2019-07-08 17:59:26 +09:00
|
|
|
use std::ops::Deref;
|
|
|
|
|
2019-06-21 12:23:05 +09:00
|
|
|
pub fn func<'a>(_x: impl Clone + Into<Vec<u8>> + 'a) {}
|
|
|
|
|
2019-07-08 17:59:26 +09:00
|
|
|
pub fn func2<T>(_x: impl Deref<Target = Option<T>> + Iterator<Item = T>, _y: impl Iterator<Item = u8>) {}
|
|
|
|
|
2019-07-08 20:42:45 +09:00
|
|
|
pub fn func3(_x: impl Iterator<Item = impl Iterator<Item = u8>> + Clone) {}
|
|
|
|
|
2019-06-21 12:23:05 +09:00
|
|
|
pub struct Foo;
|
|
|
|
|
|
|
|
impl Foo {
|
|
|
|
pub fn method<'a>(_x: impl Clone + Into<Vec<u8>> + 'a) {}
|
|
|
|
}
|