Skip to content

Commit

Permalink
Adjust rustdoc test for new restriction
Browse files Browse the repository at this point in the history
  • Loading branch information
aturon committed Mar 11, 2016
1 parent 2234b55 commit 6265b6b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/test/rustdoc/issue-25001.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,15 @@ pub trait Bar {
fn quux(self);
}

impl<T> Foo<T> {
impl Foo<u8> {
// @has - '//*[@id="method.pass"]//code' 'fn pass()'
pub fn pass() {}
}
impl<T> Foo<T> {
impl Foo<u16> {
// @has - '//*[@id="method.pass-1"]//code' 'fn pass() -> usize'
pub fn pass() -> usize { 42 }
}
impl<T> Foo<T> {
impl Foo<u32> {
// @has - '//*[@id="method.pass-2"]//code' 'fn pass() -> isize'
pub fn pass() -> isize { 42 }
}
Expand Down

0 comments on commit 6265b6b

Please sign in to comment.