Skip to content

Commit

Permalink
Remove illegal bound from doc test
Browse files Browse the repository at this point in the history
  • Loading branch information
jroesch committed Aug 29, 2016
1 parent c4504fd commit dba5cbe
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
#![feature(optin_builtin_traits)]

trait Magic : Sized where Option<Self> : Magic {} //~ ERROR E0565
impl Magic for .. {}
impl Magic for .. {}
impl<T:Magic> Magic for T {}

fn copy<T: Magic>(x: T) -> (T, T) { (x, x) }
Expand Down
4 changes: 2 additions & 2 deletions src/test/compile-fail/typeck-auto-trait-no-supertraits.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
// type that contains a mutable reference, enabling
// mutable aliasing.
//
// You can imagine an even more dangerous test,
// You can imagine an even more dangerous test,
// which currently compiles on nightly.
//
// fn main() {
Expand All @@ -35,7 +35,7 @@
#![feature(optin_builtin_traits)]

trait Magic: Copy {} //~ ERROR E0565
impl Magic for .. {}
impl Magic for .. {}
impl<T:Magic> Magic for T {}

fn copy<T: Magic>(x: T) -> (T, T) { (x, x) }
Expand Down
2 changes: 1 addition & 1 deletion src/test/rustdoc/auxiliary/rustdoc-default-impl.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
pub mod bar {
use std::marker;

pub trait Bar: 'static {}
pub trait Bar {}

impl Bar for .. {}

Expand Down

0 comments on commit dba5cbe

Please sign in to comment.