build(rust): vendor googletest crate
This commit was merged in pull request #76.
This commit is contained in:
7
third_party/crates/rustversion-1.0.23/tests/ui/bad-bound.rs
vendored
Normal file
7
third_party/crates/rustversion-1.0.23/tests/ui/bad-bound.rs
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
#[rustversion::since(stable)]
|
||||
struct S;
|
||||
|
||||
#[rustversion::any(since(stable))]
|
||||
struct S;
|
||||
|
||||
fn main() {}
|
||||
11
third_party/crates/rustversion-1.0.23/tests/ui/bad-bound.stderr
vendored
Normal file
11
third_party/crates/rustversion-1.0.23/tests/ui/bad-bound.stderr
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
error: expected rustc release number like 1.85, or nightly date like 2025-02-25
|
||||
--> tests/ui/bad-bound.rs:1:22
|
||||
|
|
||||
1 | #[rustversion::since(stable)]
|
||||
| ^^^^^^
|
||||
|
||||
error: expected rustc release number like 1.85, or nightly date like 2025-02-25
|
||||
--> tests/ui/bad-bound.rs:4:26
|
||||
|
|
||||
4 | #[rustversion::any(since(stable))]
|
||||
| ^^^^^^
|
||||
7
third_party/crates/rustversion-1.0.23/tests/ui/bad-date.rs
vendored
Normal file
7
third_party/crates/rustversion-1.0.23/tests/ui/bad-date.rs
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
#[rustversion::nightly(stable)]
|
||||
struct S;
|
||||
|
||||
#[rustversion::any(nightly(stable))]
|
||||
struct S;
|
||||
|
||||
fn main() {}
|
||||
11
third_party/crates/rustversion-1.0.23/tests/ui/bad-date.stderr
vendored
Normal file
11
third_party/crates/rustversion-1.0.23/tests/ui/bad-date.stderr
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
error: expected nightly date, like 2025-02-25
|
||||
--> tests/ui/bad-date.rs:1:24
|
||||
|
|
||||
1 | #[rustversion::nightly(stable)]
|
||||
| ^^^^^^
|
||||
|
||||
error: expected nightly date, like 2025-02-25
|
||||
--> tests/ui/bad-date.rs:4:28
|
||||
|
|
||||
4 | #[rustversion::any(nightly(stable))]
|
||||
| ^^^^^^
|
||||
7
third_party/crates/rustversion-1.0.23/tests/ui/bad-not.rs
vendored
Normal file
7
third_party/crates/rustversion-1.0.23/tests/ui/bad-not.rs
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
#[rustversion::any(not)]
|
||||
struct S;
|
||||
|
||||
#[rustversion::any(not, not)]
|
||||
struct S;
|
||||
|
||||
fn main() {}
|
||||
11
third_party/crates/rustversion-1.0.23/tests/ui/bad-not.stderr
vendored
Normal file
11
third_party/crates/rustversion-1.0.23/tests/ui/bad-not.stderr
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
error: expected `(` after `not`
|
||||
--> tests/ui/bad-not.rs:1:20
|
||||
|
|
||||
1 | #[rustversion::any(not)]
|
||||
| ^^^
|
||||
|
||||
error: expected `(`
|
||||
--> tests/ui/bad-not.rs:4:23
|
||||
|
|
||||
4 | #[rustversion::any(not, not)]
|
||||
| ^
|
||||
7
third_party/crates/rustversion-1.0.23/tests/ui/bad-version.rs
vendored
Normal file
7
third_party/crates/rustversion-1.0.23/tests/ui/bad-version.rs
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
#[rustversion::stable(nightly)]
|
||||
struct S;
|
||||
|
||||
#[rustversion::any(stable(nightly))]
|
||||
struct S;
|
||||
|
||||
fn main() {}
|
||||
11
third_party/crates/rustversion-1.0.23/tests/ui/bad-version.stderr
vendored
Normal file
11
third_party/crates/rustversion-1.0.23/tests/ui/bad-version.stderr
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
error: expected rustc release number, like 1.31
|
||||
--> tests/ui/bad-version.rs:1:23
|
||||
|
|
||||
1 | #[rustversion::stable(nightly)]
|
||||
| ^^^^^^^
|
||||
|
||||
error: expected rustc release number, like 1.31
|
||||
--> tests/ui/bad-version.rs:4:27
|
||||
|
|
||||
4 | #[rustversion::any(stable(nightly))]
|
||||
| ^^^^^^^
|
||||
4
third_party/crates/rustversion-1.0.23/tests/ui/const-not-fn.rs
vendored
Normal file
4
third_party/crates/rustversion-1.0.23/tests/ui/const-not-fn.rs
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
#[rustversion::attr(all(), const)]
|
||||
pub struct S;
|
||||
|
||||
fn main() {}
|
||||
5
third_party/crates/rustversion-1.0.23/tests/ui/const-not-fn.stderr
vendored
Normal file
5
third_party/crates/rustversion-1.0.23/tests/ui/const-not-fn.stderr
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
error: only allowed on a fn item
|
||||
--> tests/ui/const-not-fn.rs:1:28
|
||||
|
|
||||
1 | #[rustversion::attr(all(), const)]
|
||||
| ^^^^^
|
||||
Reference in New Issue
Block a user