// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
+//
+// ignore-lexer-test FIXME #15883
// FIXME: cover these topics:
// path, reader, writer, stream, raii (close not needed),
use char::Char;
use collections::Collection;
+use default::Default;
use fmt;
use int;
use iter::Iterator;
use str;
use string::String;
use uint;
-use unicode::UnicodeChar;
+use unicode::char::UnicodeChar;
use vec::Vec;
// Reexports
bitflags!(
#[doc="A set of permissions for a file or directory is represented
by a set of flags which are or'd together."]
- #[deriving(Hash)]
#[deriving(Show)]
flags FilePermission: u32 {
static UserRead = 0o400,
}
)
+impl Default for FilePermission {
+ #[inline]
+ fn default() -> FilePermission { FilePermission::empty() }
+}
+
#[cfg(test)]
mod tests {
use super::{IoResult, Reader, MemReader, NoProgress, InvalidInput};