(&self)
| 286 | |
| 287 | impl LeafIllegalConst { |
| 288 | fn message(&self) -> &'static str { |
| 289 | match *self { |
| 290 | Self::CompositeContainsPtrTo => { |
| 291 | "constant arrays/structs cannot contain pointers to other constants" |
| 292 | } |
| 293 | } |
| 294 | } |
| 295 | } |
| 296 | |
| 297 | #[derive(Copy, Clone, Debug)] |