diff options
| author | Esteban Küber <esteban@kuber.com.ar> | 2019-03-18 11:06:48 -0700 |
|---|---|---|
| committer | Esteban Küber <esteban@kuber.com.ar> | 2019-03-22 20:38:14 -0700 |
| commit | 2f7b32091ecdc86520d75aa8fe6bcffb5849732d (patch) | |
| tree | 1e5f092def504f6f264e1eaff6b63bdc58c47edf | |
| parent | ac3290e8d949448193014c85096f8772db331d46 (diff) | |
| download | rust-2f7b32091ecdc86520d75aa8fe6bcffb5849732d.tar.gz rust-2f7b32091ecdc86520d75aa8fe6bcffb5849732d.zip | |
extend on-unimplemented docs
| -rw-r--r-- | src/doc/unstable-book/src/language-features/on-unimplemented.md | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/doc/unstable-book/src/language-features/on-unimplemented.md b/src/doc/unstable-book/src/language-features/on-unimplemented.md index b156038fba0..a770ab65c26 100644 --- a/src/doc/unstable-book/src/language-features/on-unimplemented.md +++ b/src/doc/unstable-book/src/language-features/on-unimplemented.md @@ -139,7 +139,8 @@ error[E0277]: `&str` is not an iterator = note: required by `std::iter::IntoIterator::into_iter` ``` -If you need to filter on multiple attributes, you can use `all` in the following way: +If you need to filter on multiple attributes, you can use `all`, `any` or +`not` in the following way: ```rust,compile_fail #[rustc_on_unimplemented( @@ -149,4 +150,4 @@ If you need to filter on multiple attributes, you can use `all` in the following ) )] pub trait From<T>: Sized { /* ... */ } -``` \ No newline at end of file +``` |
