Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

using std.stdio.File gives surprising error #45

Open
schveiguy opened this issue Feb 5, 2024 · 0 comments
Open

using std.stdio.File gives surprising error #45

schveiguy opened this issue Feb 5, 2024 · 0 comments

Comments

@schveiguy
Copy link
Owner

If you forget and use std.stdio.File as your input stream, then you get a weird error about GCNoPointerAllocator.

../../../.dub/packages/iopipe/0.2.5/iopipe/source/iopipe/bufpipe.d(571,84): Error: initializer provided for struct `GCNoPointerAllocator` with no fields
../../../.dub/packages/iopipe/0.2.5/iopipe/source/iopipe/bufpipe.d(580,56): Error: template instance `iopipe.bufpipe.bufd!(ubyte, GCNoPointerAllocator, 32LU, immutable(NullDev), RefCounted!(File))` error instantiating
source/app.d(11,43):        instantiated from here: `bufd!(ubyte, GCNoPointerAllocator, 32LU, RefCounted!(File))`

See if this can be fixed for a better error using constraints or something else.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant