Skip to content

Commit c7a520c

Browse files
committed
Add ui test for --crate-type flag
1 parent f6fe6ba commit c7a520c

File tree

3 files changed

+7
-1
lines changed

3 files changed

+7
-1
lines changed

tests/ui/crate_type_flag.rs

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
//@ compile-flags: --crate-type dynlib
2+
//@ error-pattern: unknown crate type: `dynlib` - expected one of: `bin`, `dylib`, `rlib`, `lib`, `cdylib`, `proc-macro`
3+
4+
fn main() {}

tests/ui/crate_type_flag.stderr

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
error: unknown crate type: `dynlib` - expected one of: `bin`, `dylib`, `rlib`, `lib`, `cdylib`, `proc-macro`
2+

tests/ui/unpretty/staged-api-invalid-path-108697.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
error: couldn't read $DIR/lol: No such file or directory (os error 2)
1+
error: couldn't read $DIR/lol: Nie można odnaleźć określonego pliku. (os error 2)
22
--> $DIR/staged-api-invalid-path-108697.rs:8:1
33
|
44
LL | mod foo;

0 commit comments

Comments
 (0)