Closed
Description
This may have a duplicate, since there are similar panics already reported, but this is on a different line number.
The compilation log and source code are listed below
pub mod client;
pub mod msg;
use std::collections::HashMap;
use std::sync::Arc;
use tokio::sync::broadcast::{channel, Receiver, Sender};
/**
* A channel is named and typed with the type of messages it should be carrying
*/
struct Channel {
name: String,
send: Sender<Message>,
recv: Receiver<Message>,
}
struct Message {}
impl Channel {
fn send(&self, msg: Message) {}
fn recv(&self, msg: Message) {}
}
struct Bus {
/**
* Channels are named and can implement a number of different types. This should
* allow the Bus to handle different channels with different message payloads
* while still taking advantage of compile-time checks
*/
channels: HashMap<String, Channel>,
}
#[cfg(test)]
mod tests {
use super::*;
}
Metadata
Metadata
Assignees
Labels
Area: Incremental compilationCategory: This is a bug.Call for participation: This issue has a repro, but needs a Minimal Complete and Verifiable ExampleIssue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️High priorityRelevant to the compiler team, which will review and decide on the PR/issue.