# `try_blocks` The tracking issue for this feature is: [#31436] [#31436]: https://github.com/rust-lang/rust/issues/31436 ------------------------ The `try_blocks` feature adds support for `try` blocks. A `try` block creates a new scope one can use the `?` operator in. ```rust,edition2018 #![feature(try_blocks)] use std::num::ParseIntError; let result: Result = try { "1".parse::()? + "2".parse::()? + "3".parse::()? }; assert_eq!(result, Ok(6)); let result: Result = try { "1".parse::()? + "foo".parse::()? + "3".parse::()? }; assert!(result.is_err()); ```