Skip to content

Commit

Permalink
Move const tests for std::path::Prefix to library\core
Browse files Browse the repository at this point in the history
  • Loading branch information
CDirkx committed Sep 3, 2020
1 parent 770ecd2 commit ba79257
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
10 changes: 10 additions & 0 deletions library/std/src/path/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1392,3 +1392,13 @@ fn into_rc() {
assert_eq!(&*rc2, path);
assert_eq!(&*arc2, path);
}

#[test]
fn prefix_const() {
// test that the methods of `Prefix` are usable in a const context

const PREFIX: Prefix<'_> = Prefix::Disk(2);

const IS_VERBATIM: bool = PREFIX.is_verbatim();
assert!(!IS_VERBATIM);
}
10 changes: 0 additions & 10 deletions src/test/ui/consts/std/path.rs

This file was deleted.

0 comments on commit ba79257

Please sign in to comment.