Constrain string interpolation

This commit is contained in:
Richard Feldman 2020-08-29 21:37:46 -04:00
parent 5080a7e24b
commit 274e7e786d
11 changed files with 150 additions and 180 deletions

View file

@ -55,6 +55,7 @@ pub enum Problem {
alias_name: Symbol,
region: Region,
},
InvalidInterpolation(Region),
}
#[derive(Clone, Debug, PartialEq)]
@ -125,6 +126,8 @@ pub enum RuntimeError {
NonExhaustivePattern,
InvalidInterpolation(Region),
/// When the author specifies a type annotation but no implementation
NoImplementation,
}