Fix failing examples
This commit is contained in:
parent
8ecbb7e39a
commit
30b522365b
3 changed files with 14 additions and 10 deletions
|
@ -11,7 +11,7 @@ declare_lint! {
|
|||
/// scope.
|
||||
///
|
||||
/// ### Example
|
||||
/// ```
|
||||
/// ```rust
|
||||
/// struct SomeStruct;
|
||||
/// impl Drop for SomeStruct {
|
||||
/// fn drop(&mut self) {
|
||||
|
|
|
@ -26,19 +26,23 @@ declare_lint! {
|
|||
///
|
||||
/// ### Example
|
||||
///
|
||||
/// ```
|
||||
/// ```rust
|
||||
/// trait Duh {}
|
||||
///
|
||||
/// impl Duh for i32 {}
|
||||
///
|
||||
/// trait Trait {
|
||||
/// type Assoc: Send;
|
||||
/// type Assoc: Duh;
|
||||
/// }
|
||||
///
|
||||
/// struct Struct;
|
||||
///
|
||||
/// impl Trait for Struct {
|
||||
/// type Assoc = i32;
|
||||
/// impl<F: Duh> Trait for F {
|
||||
/// type Assoc = F;
|
||||
/// }
|
||||
///
|
||||
/// fn test() -> impl Trait<Assoc = impl Sized> {
|
||||
/// Struct
|
||||
/// 42
|
||||
/// }
|
||||
/// ```
|
||||
///
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue