Skip to main content

variant_conflict_error

Function variant_conflict_error 

Source
pub fn variant_conflict_error(
    c: &ConstDecl,
    types: &HashMap<String, Arc<TypeDecl>>,
    unselected: &HashSet<String>,
) -> Option<CompileError>
Expand description

bynk.resolve.name_conflict for a constant that shares its name with a variant of a sum type in scope, or with a predeclared HttpResult variant: a bare Name would read as either, so the constant may not take the name.