use rustc::mir::repr::Literal::*;
match *literal {
Value { ref value } => Ok(self.const_to_ptr(value)?),
- Item { .. } => Err(EvalError::Unimplemented(format!("function pointers are unimplemented"))),
+ Item { .. } => Err(EvalError::Unimplemented(format!("literal items (e.g. mentions of function items) are unimplemented"))),
Promoted { index } => {
// TODO(solson): Mark constants and statics as read-only and cache their
// values.
#![feature(custom_attribute)]
#![allow(dead_code, unused_attributes)]
-//error-pattern:function pointers are unimplemented
+//error-pattern:literal items (e.g. mentions of function items) are unimplemented
static mut X: usize = 5;