Ensure transactional with ? works in frame v2 (#7982)

This commit is contained in:
Guillaume Thiolliere
2021-01-26 16:42:27 +01:00
committed by GitHub
parent e535e4211e
commit 4e1f112059
2 changed files with 6 additions and 5 deletions
@@ -195,7 +195,8 @@ fn transactional_annotation() {
#[transactional]
fn value_rollbacks(v: u32) -> result::Result<u32, &'static str> {
set_value(v)?;
Err("nah")
Err("nah")?;
Ok(v)
}
TestExternalities::default().execute_with(|| {