nu_experimental/options/
enforce_runtime_annotations.rs

1use crate::*;
2
3/// Enable runtime type annotation feature to ensure that type annotations
4/// are checked against the type that binds to them, returning conversion errors
5/// if the types are incompatible.
6pub static ENFORCE_RUNTIME_ANNOTATIONS: ExperimentalOption =
7    ExperimentalOption::new(&EnforceRuntimeAnnotations);
8
9struct EnforceRuntimeAnnotations;
10
11impl ExperimentalOptionMarker for EnforceRuntimeAnnotations {
12    const IDENTIFIER: &'static str = "enforce-runtime-annotations";
13    const DESCRIPTION: &'static str = "\
14        Enforce type checking of let assignments at runtime such that \
15        invalid type conversion errors propagate the same way they would for predefined values.";
16    const STATUS: Status = Status::OptIn;
17    const SINCE: Version = (0, 107, 1);
18    const ISSUE: u32 = 16832;
19}