diff options
Diffstat (limited to 'src/test/rustdoc/impossible-default.rs')
-rw-r--r-- | src/test/rustdoc/impossible-default.rs | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/src/test/rustdoc/impossible-default.rs b/src/test/rustdoc/impossible-default.rs deleted file mode 100644 index 24d6e3bda..000000000 --- a/src/test/rustdoc/impossible-default.rs +++ /dev/null @@ -1,20 +0,0 @@ -#![crate_name = "foo"] - -// Check that default trait items that are impossible to satisfy - -pub trait Foo { - fn needs_sized(&self) - where - Self: Sized, - {} - - fn no_needs_sized(&self) {} -} - -// @!has foo/struct.Bar.html '//*[@id="method.needs_sized"]//h4[@class="code-header"]' \ -// "fn needs_sized" -// @has foo/struct.Bar.html '//*[@id="method.no_needs_sized"]//h4[@class="code-header"]' \ -// "fn no_needs_sized" -pub struct Bar([u8]); - -impl Foo for Bar {} |