]> git.proxmox.com Git - rustc.git/blob - src/test/rustdoc/impossible-default.rs
Update unsuspicious file list
[rustc.git] / src / test / rustdoc / impossible-default.rs
1 #![crate_name = "foo"]
2
3 // Check that default trait items that are impossible to satisfy
4
5 pub trait Foo {
6 fn needs_sized(&self)
7 where
8 Self: Sized,
9 {}
10
11 fn no_needs_sized(&self) {}
12 }
13
14 // @!has foo/struct.Bar.html '//*[@id="method.needs_sized"]//h4[@class="code-header"]' \
15 // "fn needs_sized"
16 // @has foo/struct.Bar.html '//*[@id="method.no_needs_sized"]//h4[@class="code-header"]' \
17 // "fn no_needs_sized"
18 pub struct Bar([u8]);
19
20 impl Foo for Bar {}