]> git.lizzy.rs Git - rust.git/blob - tests/rustdoc/auxiliary/rustdoc-default-impl.rs
Rollup merge of #106692 - eggyal:mv-binary_heap.rs-binary_heap/mod.rs, r=Mark-Simulacrum
[rust.git] / tests / rustdoc / auxiliary / rustdoc-default-impl.rs
1 #![feature(auto_traits)]
2
3 pub mod bar {
4     use std::marker;
5
6     pub auto trait Bar {}
7
8     pub trait Foo {
9         fn foo(&self) {}
10     }
11
12     impl Foo {
13         pub fn test<T: Bar>(&self) {}
14     }
15
16     pub struct TypeId;
17
18     impl TypeId {
19         pub fn of<T: Bar + ?Sized>() -> TypeId {
20             panic!()
21         }
22     }
23 }