| 1 | use anyhowrust-analyzer cargo anyhow 1.0.103 crate/::{bailrust-analyzer cargo anyhow 1.0.103 macros/bail!, Resultrust-analyzer cargo anyhow 1.0.103 Result#}; |
| 2 | use stdrust-analyzer cargo std https://github.com/rust-lang/rust/library/std crate/::iorust-analyzer cargo std https://github.com/rust-lang/rust/library/std io/; |
| 3 | |
| 4 | pub fn bail_literalrust-analyzer cargo anyhow 1.0.103 common/bail_literal().() -> Resultrust-analyzer cargo anyhow 1.0.103 Result#<()> { |
| 5 | bailrust-analyzer cargo anyhow 1.0.103 macros/bail!!("oh no!"); |
| 6 | } |
| 7 | |
| 8 | pub fn bail_fmtrust-analyzer cargo anyhow 1.0.103 common/bail_fmt().() -> Resultrust-analyzer cargo anyhow 1.0.103 Result#<()> { |
| 9 | bailrust-analyzer cargo anyhow 1.0.103 macros/bail!!("{} {}!", "oh", "no"); |
| 10 | } |
| 11 | |
| 12 | pub fn bail_errorrust-analyzer cargo anyhow 1.0.103 common/bail_error().() -> Resultrust-analyzer cargo anyhow 1.0.103 Result#<()> { |
| 13 | bailrust-analyzer cargo anyhow 1.0.103 macros/bail!!(iorust-analyzer cargo std https://github.com/rust-lang/rust/library/std io/::Errorrust-analyzer cargo std https://github.com/rust-lang/rust/library/std io/error/Error#::newrust-analyzer cargo std https://github.com/rust-lang/rust/library/std io/error/impl#[Error]new().(iorust-analyzer cargo std https://github.com/rust-lang/rust/library/std io/::ErrorKindrust-analyzer cargo std https://github.com/rust-lang/rust/library/std io/error/ErrorKind#::Otherrust-analyzer cargo std https://github.com/rust-lang/rust/library/std io/error/ErrorKind#Other#, "oh no!")); |
| 14 | } |