summaryrefslogtreecommitdiff
path: root/rust/compiler_test.go
diff options
context:
space:
mode:
authorChih-Hung Hsieh <chh@google.com>2020-05-15 17:36:30 -0700
committerChih-Hung Hsieh <chh@google.com>2020-07-08 23:50:00 -0700
commitbbd25aeb428edaa7fb332cc0a6771aeede38e286 (patch)
tree315941dd2e085d7a332fbc0122b9673dab212653 /rust/compiler_test.go
parentecc495fd096871feff67f598fc768ba972a84dd9 (diff)
Specify module dependency in the srcs list
* "srcs" list contains one main Rust source file, followed by optional dependent modules. * A dependent module included in the "srcs" list is the module name prefixed with ":". * Add a simple test. Bug: 160331255 Test: make and manual test build dependencies on genrule modules Change-Id: I4f079138c2599158810b6412fce81b612a3f64a4
Diffstat (limited to 'rust/compiler_test.go')
-rw-r--r--rust/compiler_test.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/rust/compiler_test.go b/rust/compiler_test.go
index bcde75795..58ca52a0c 100644
--- a/rust/compiler_test.go
+++ b/rust/compiler_test.go
@@ -43,7 +43,7 @@ func TestFeaturesToFlags(t *testing.T) {
// Test that we reject multiple source files.
func TestEnforceSingleSourceFile(t *testing.T) {
- singleSrcError := "srcs can only contain one path for rust modules"
+ singleSrcError := "srcs can only contain one path for a rust file"
// Test libraries
testRustError(t, singleSrcError, `