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