An optional operand at the end of an assembly format creates a format ambiguity with the SSA names of the results of the next operation, e.g.
// test.foo $optional attr-dict
test.foo %0 = test.bar
Prevent this by adding a verifier to check for these cases.
This should be ok: it isn't a trailing argument, it has a trailing type.