]> git.lizzy.rs Git - rust.git/blob - tests/rustdoc/auxiliary/rustdoc-default-impl.rs
Auto merge of #106711 - albertlarsan68:use-ci-llvm-when-lld, r=jyn514
[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 }