rustc::diagnostics::DIAGNOSTICSUnstable [-] [+] [src]

pub static DIAGNOSTICS: [(&'static str, &'static str); 5usize] = [("E0001",
  "\n    This error suggests that the expression arm corresponding to the noted pattern\n    will never be reached as for all possible values of the expression being matched,\n    one of the preceding patterns will match.\n\n    This means that perhaps some of the preceding patterns are too general, this\n    one is too specific or the ordering is incorrect.\n"),
 ("E0003",
  "\n    Not-a-Number (NaN) values can not be compared for equality and hence can never match\n    the input to a match expression. To match against NaN values, you should instead use\n    the `is_nan` method in a guard, as in: x if x.is_nan() => ...\n"),
 ("E0004",
  "\n    This error indicates that the compiler can not guarantee a matching pattern for one\n    or more possible inputs to a match expression. Guaranteed matches are required in order\n    to assign values to match expressions, or alternatively, determine the flow of execution.\n\n    If you encounter this error you must alter your patterns so that every possible value of\n    the input type is matched. For types with a small number of variants (like enums) you\n    should probably cover all cases explicitly. Alternatively, the underscore `_` wildcard\n    pattern can be added after all other patterns to match \"anything else\".\n"),
 ("E0005",
  "\n    Patterns used to bind names must be irrefutable, that is, they must guarantee that a\n    name will be extracted in all cases. If you encounter this error you probably need\n    to use a `match` or `if let` to deal with the possibility of failure.\n"),
 ("E0006",
  "\n    Patterns used to bind names must be irrefutable, that is, they must guarantee that a\n    name will be extracted in all cases. If you encounter this error you probably need\n    to use a `match` or `if let` to deal with the possibility of failure.\n")]