]> git.lizzy.rs Git - rust.git/commitdiff
Test previously reported false positive
authormcarton <cartonmartin+git@gmail.com>
Thu, 5 May 2016 19:34:42 +0000 (21:34 +0200)
committermcarton <cartonmartin+git@gmail.com>
Thu, 5 May 2016 19:34:42 +0000 (21:34 +0200)
tests/compile-fail/doc.rs

index 045174db78e49591ecdbd8dd9dbc87013e27e7b0..0c8d1d5053290152c68dda5e8cd601e0ea82f822 100755 (executable)
@@ -115,3 +115,17 @@ fn main() {
 //~^ ERROR: you should put `be_sure_we_got_to_the_end_of_it` between ticks
 fn issue900() {
 }
+
+/// Diesel queries also have a similar problem to [Iterator][iterator], where
+/// /// More talking
+/// returning them from a function requires exposing the implementation of that
+/// function. The [`helper_types`][helper_types] module exists to help with this,
+/// but you might want to hide the return type or have it conditionally change.
+/// Boxing can achieve both.
+///
+/// [iterator]: https://doc.rust-lang.org/stable/std/iter/trait.Iterator.html
+/// [helper_types]: ../helper_types/index.html
+/// be_sure_we_got_to_the_end_of_it
+//~^ ERROR: you should put `be_sure_we_got_to_the_end_of_it` between ticks
+fn issue883() {
+}