2020-11-22 19:54:31 -08:00
|
|
|
#![feature(auto_traits)]
|
2015-04-29 10:21:47 +02:00
|
|
|
|
2016-04-26 10:51:14 -07:00
|
|
|
pub mod bar {
|
|
|
|
use std::marker;
|
2015-04-29 10:21:47 +02:00
|
|
|
|
2017-12-03 10:56:53 -02:00
|
|
|
pub auto trait Bar {}
|
2016-04-26 10:51:14 -07: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 10:21:47 +02:00
|
|
|
}
|