diff --git a/src/libcore/util.rs b/src/libcore/util.rs index 9b7a644b508b..0f6c852ddcbb 100644 --- a/src/libcore/util.rs +++ b/src/libcore/util.rs @@ -5,6 +5,9 @@ /// The identity function. pure fn id(+x: T) -> T { x } +/// Ignores a value. +pure fn ignore(+_x: T) { } + /** * Swap the values at two mutable locations of the same type, without * deinitialising or copying either one.