Skip to main content

with_const_origin

Function with_const_origin 

Source
pub fn with_const_origin(err: CompileError, arg: &AnnotationArg) -> CompileError
Expand description

Attach the constant’s declaration to err as a related span, when the argument was a reference to a constant in the same file.