Seeing "warning: file found to be present in multiple build targets" when file is actually *not present* in multiple targets #11248
Labels
A-cargo-targets
Area: selection and definition of targets (lib, bins, examples, tests, benches)
A-diagnostics
Area: Error and warning messages generated by Cargo itself.
C-enhancement
Category: enhancement
E-easy
Experience: Easy
Problem
I've seen numerous issues related to this warning, however I believe I've found a bug with it. I have two binaries listed in my [[bin]] table, each with a different main file. When one of the files is in the
tests
directory, the warning surfaces. However when both files are undersrc
, there is no warning. Cargo seems to be complaining about a non-problematic usage of the binary table. Please see example in repro section.Steps
Configuration 1: Warning occurs when
test_server.rs
lives intests
directory.Configuration 2: Warning not raised when
test_server.rs
is placed insrc
.Possible Solution(s)
No response
Notes
No response
Version
The text was updated successfully, but these errors were encountered: