Please describe the bug
Take the following on top of #1007:
diff --git a/std/src/std/uri.inko b/std/src/std/uri.inko
index 3ddc8d240a..ecc76c7377 100644
--- a/std/src/std/uri.inko
+++ b/std/src/std/uri.inko
@@ -1188,7 +1188,7 @@
#
# Path.from_slice(comp.slice(0, comp.size - 1).iter) # => Path('a/b/%20')
# ```
- fn pub static from_iter[B: Bytes, I: Iter[B]](iter: move I) -> Path {
+ fn pub static from_iter[B: Bytes](iter: move Iter[B]) -> Path {
let buf = ByteArray.new
let mut len = 0
test/std/test_uri.inko:346:28 error(invalid-type): expected a value of type 'Iter[B]', found 'Iter[String]'
This should instead say something along the lines of traits are forbidden here, did you mean to put it in the generic bounds?. I found it deeply confusing until I realized what was actually going on here. 😅
Operating system
macOS
Inko version
cf08927
Please describe the bug
Take the following on top of #1007:
This should instead say something along the lines of traits are forbidden here, did you mean to put it in the generic bounds?. I found it deeply confusing until I realized what was actually going on here. 😅
Operating system
macOS
Inko version
cf08927