diff options
Diffstat (limited to 'src/test/ui/suggestions/into-str.rs')
-rw-r--r-- | src/test/ui/suggestions/into-str.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/test/ui/suggestions/into-str.rs b/src/test/ui/suggestions/into-str.rs new file mode 100644 index 000000000..606e44b2e --- /dev/null +++ b/src/test/ui/suggestions/into-str.rs @@ -0,0 +1,6 @@ +fn foo<'a, T>(_t: T) where T: Into<&'a str> {} + +fn main() { + foo(String::new()); + //~^ ERROR the trait bound `&str: From<String>` is not satisfied +} |