|
| 1 | +error: Error in a module |
| 2 | + --> $DIR/compile_error_macro-suppress-errors.rs:2:5 |
| 3 | + | |
| 4 | +LL | compile_error!("Error in a module"); |
| 5 | + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 6 | + |
| 7 | +error: Error in a function |
| 8 | + --> $DIR/compile_error_macro-suppress-errors.rs:23:9 |
| 9 | + | |
| 10 | +LL | compile_error!("Error in a function"); |
| 11 | + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 12 | + |
| 13 | +error[E0432]: unresolved import `crate::another_module::NotExist` |
| 14 | + --> $DIR/compile_error_macro-suppress-errors.rs:11:13 |
| 15 | + | |
| 16 | +LL | use crate::another_module::NotExist; |
| 17 | + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ no `NotExist` in `another_module` |
| 18 | + |
| 19 | +error[E0433]: failed to resolve: could not find `Hello` in `another_module` |
| 20 | + --> $DIR/compile_error_macro-suppress-errors.rs:37:55 |
| 21 | + | |
| 22 | +LL | let _: another_module::SomeType = another_module::Hello::new(); |
| 23 | + | ^^^^^ could not find `Hello` in `another_module` |
| 24 | + |
| 25 | +error[E0425]: cannot find type `MissingType` in module `self` |
| 26 | + --> $DIR/compile_error_macro-suppress-errors.rs:15:26 |
| 27 | + | |
| 28 | +LL | error: self::MissingType, |
| 29 | + | ^^^^^^^^^^^ not found in `self` |
| 30 | + |
| 31 | +error[E0425]: cannot find function `some_function` in module `another_module` |
| 32 | + --> $DIR/compile_error_macro-suppress-errors.rs:35:29 |
| 33 | + | |
| 34 | +LL | let _ = another_module::some_function(); |
| 35 | + | ^^^^^^^^^^^^^ not found in `another_module` |
| 36 | + |
| 37 | +error[E0425]: cannot find type `SomeType` in module `another_module` |
| 38 | + --> $DIR/compile_error_macro-suppress-errors.rs:37:28 |
| 39 | + | |
| 40 | +LL | let _: another_module::SomeType = another_module::Hello::new(); |
| 41 | + | ^^^^^^^^ not found in `another_module` |
| 42 | + |
| 43 | +error: aborting due to 7 previous errors |
| 44 | + |
| 45 | +Some errors have detailed explanations: E0425, E0432, E0433. |
| 46 | +For more information about an error, try `rustc --explain E0425`. |
0 commit comments