2020-11-22 21:54:31 -06:00
|
|
|
#![feature(auto_traits)]
|
2015-04-29 03:21:47 -05:00
|
|
|
|
2016-04-26 12:51:14 -05:00
|
|
|
pub mod bar {
|
|
|
|
use std::marker;
|
2015-04-29 03:21:47 -05:00
|
|
|
|
2017-12-03 06:56:53 -06:00
|
|
|
pub auto trait Bar {}
|
2016-04-26 12:51:14 -05:00
|
|
|
|
|
|
|
pub trait Foo {
|
|
|
|
fn foo(&self) {}
|
|
|
|
}
|
|
|
|
|
|
|
|
impl Foo {
|
|
|
|
pub fn test<T: Bar>(&self) {}
|
|
|
|
}
|
|
|
|
|
|
|
|
pub struct TypeId;
|
|
|
|
|
|
|
|
impl TypeId {
|
|
|
|
pub fn of<T: Bar + ?Sized>() -> TypeId {
|
|
|
|
panic!()
|
|
|
|
}
|
|
|
|
}
|
2015-04-29 03:21:47 -05:00
|
|
|
}
|